I am new to cakephp. I have created a form to add users. I want to allow only characters for username. My code for validation is as follows:
public $validate = array(
"username" => array(
"required" => array(
"rule" => array("notEmpty"),
"message" => "Name is required"
)
),
"age" => array(
"required" => array(
"rule" => array("notEmpty"),
"message" => "Age is required"
)
)
);
what should i add to allow only characters for username.