i would like to access the following variable
<?php echo validation_errors(); ?>
From my controller. I tried
$this->form_validation->validation_errors();
With no luck. Not sure if this is even possible
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since
validation_errors()is a helper function, you can use it as it is in controller. i.e. in your controller:You’ll need to load the helper first, of course.