cakephp validate
validate
空欄 notEmpty(mixed $check)
public $validate = array( 'name' => 'notEmpty' );
英数字 alphaNumeric(mixed $check)
public $validate = array(
'id' => 'alphaNumeric'
);
数字 numeric(string $check)
public $validate = array(
'height' => 'numeric'
);
URL url(string $check, boolean $strict = false)
public $validate = array(
'url' => 'url'
);
数字の範囲 range(string $check, integer $lower = null, integer $upper = null)
public $validate = array( 'age' => array( 'rule' => array('range', 19, 51), 'message' => '20-50の間で入力してください' ) );