Skip to main content

Posts

Showing posts with the label Cakephp Model Validation

Model Validation in Cakephp

Server Side Model Validation in cakephp Step 1:  Create a form in in view  View  <div class="users form"> <?php echo $this->Form->create('User');?>     <fieldset>  <legend><?php echo __('Add User'); ?></legend>         <?php echo $this->Form->input('username'); echo $this->Form->input('email');  echo $this->Form->input('password'); echo $this->Form->input('password_confirm', array('label' => 'Confirm Password *', 'maxLength' => 255, 'title' => 'Confirm password', 'type'=>'password')); echo $this->Form->input('role', array( 'options' => array( 'king' => 'King', 'queen' => 'Queen', 'rook' => 'Rook', 'bishop' => 'Bishop', 'knight' => 'Knight...