cakephp - Validation doesn't working in cakephp2.x -


i new in cakephp. wrote validation ctpfile in cakephp 2.6.7 viewing login , logout word validation doesn't work.

my code is:-

 <?php     if (!$authuser) {          echo $this->element('logout-header');     } else {         echo $this->element('login-header');     }     ?> 

how can write validation in ctp file viewing login , logout word in page header?

why wrote validation ctp? put validation rules in model

http://book.cakephp.org/2.0/en/models/data-validation.html


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -