In custom plugin croogo validations are not working -


i have made custom plugin in croogo. accounting , have model called accountmaster. have set request data model

$this->accountmaster->set($this->request->data);  

when

$this->accountmaster->validates();  

it comes true. have put

public $validate = array(     'ac_head' => array(         'notempty' => array(             'rule' => array('numeric'),             'message' => 'your custom message here',         )     )    );  

but every time comes true. means validation not working.

could me in this. action name admin_acmaster in accounting controller

thanks in advance.


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -