cakephp : apply validation on form using model but doesn’t have actually table exist in database. | Techbirds
Posted on: September 4, 2017 /
Categories: PHP
Posted on: May 25, 2014 / Categories: PHP / Author Name: Anand Kumar Problem : model which doesn’t actually have a table. for example validating a form on site e.g contact form Solution : class ContactForm extends AppModel { var $name = ‘contactForm’; var $useTable = false; var $_schema = array( ‘name’ => array(‘type’=>’string’, ‘length’=>100),