cakephp - Validation doesn't working in cakephp2.x -
i new in cakephp
. wrote validation ctp
file 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
Comments
Post a Comment