Answers for "hasAny cakephp"

PHP
2

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;
}
Posted by: Guest on February-18-2021

Browse Popular Code Answers by Language