Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

hasAny cakephp

// check same schoolcode.
$conditions = array(
'School.school_code' => $data['School']['school_code'],
);

if ($this->School->hasAny($conditions)) {
	$this->Session->setFlash(__('school_code_is_exist'), 'flash/error');
	goto load_data;
}
 
PREVIOUS NEXT
Tagged: #hasAny #cakephp
ADD COMMENT
Topic
Name
9+1 =