Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
13532 anikendra 1
<?php
2
App::uses('AppModel', 'Model');
3
/**
4
 * Userurl Model
5
 *
6
 */
7
class Userurl extends AppModel {
8
 
9
/**
10
 * Validation rules
11
 *
12
 * @var array
13
 */
14
	public $validate = array(
15
		'url' => array(
16
			'notEmpty' => array(
17
				'rule' => array('notEmpty'),
18
				//'message' => 'Your custom message here',
19
				//'allowEmpty' => false,
20
				//'required' => false,
21
				//'last' => false, // Stop validation after this rule
22
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
23
			),
24
		),
25
	);
26
}