CodeIgniter Forums
subfolders and form validation - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: subfolders and form validation (/thread-1831.html)



subfolders and form validation - El Forum - 06-29-2007

[eluser]Unknown[/eluser]
I am working through the form validation examples and it works if I do not put the views in subfolders. Here are the statements that generate errors when used from my subfolder.

<?=$this->validation->error_string; ?>

<?=form_open('form'); ?>

Please help.

Thanks


subfolders and form validation - El Forum - 06-29-2007

[eluser]Unknown[/eluser]
I found my problem. I was missing the following lines from my controller.

$this->load->helper(array('form', 'url'));
$this->load->library('validation');

Thanks.