problem in simple login form : Message: Undefined property: CI_Validation::$username |
[eluser]bhakti.thakkar[/eluser]
Just a day old in CI. Code in login_view.php Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> code in login.php Code: <?php As soon as i add <input type="text" name="username" value="<?=$this->validation->username;?>" /> instead of <input type="text" name="username" value="" /> i get the error :Undefined property: CI_Validation. Also if i am leaving the fields blank, no serverside validation messages are displayed. where am i wrong
[eluser]bhakti.thakkar[/eluser]
actually i think i am miss managing my application. the problem is i want handle multiple one CI folder and as i read somewhere i have put my folder for eg: foo under application folder and it has all the files and folders which the CI application folder has. Below is the folder structure applications foo config/ controllers/ errors/ helpers/ hooks/ languages etc ... etc... bar system user_guide
[eluser]dbashyal[/eluser]
I got the same error and i work around like this in controller: Code: function _validity($v) in View's field value: Code: echo $this->_validity('firstname');
[eluser]Aken[/eluser]
You'll need some sort of IF check to see if $this->validation->field actually exists. You also need to define the fields, as explained in the Validation Guide: http://ellislab.com/codeigniter/user-gui...ation.html See under 'Re-populating the form.' |
Welcome Guest, Not a member yet? Register Sign In |