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
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
Since validation_errors()
is a helper function, you can use it as it is in controller. i.e. in your controller:
<?php echo validation_errors(); ?>
You'll need to load the helper first, of course.