Undefined property: Form::$form_validation - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Undefined property: Form::$form_validation (/showthread.php?tid=40841) |
Undefined property: Form::$form_validation - El Forum - 04-20-2011 [eluser]joky[/eluser] Hi everyone, I'm new to CI and to this forum so thanks in advance for accepting me with my bad english. Well, I tryed to make a form with validation. Something very simple and it did'nt work so, I took a look at the user guide and I copy/paste the 3 files needed. The only thing I changes is the views folder. But I got the same error : Quote:A PHP Error was encountered And here is my form.php Code: <?php So line 11 is : Code: if ($this->form_validation->run() == FALSE) I hope some one will be able to help me soon. Regards Undefined property: Form::$form_validation - El Forum - 04-20-2011 [eluser]Nur Cholikul Anwar[/eluser] PLease copy your tests/myform and tests/formsuccess Undefined property: Form::$form_validation - El Forum - 04-20-2011 [eluser]joky[/eluser] Hello, No problem, these are the views like in the user guide : tests/formsuccess.php Code: <html> tests/myform.php Code: <html> Regards Undefined property: Form::$form_validation - El Forum - 04-20-2011 [eluser]Nur Cholikul Anwar[/eluser] Please check what file /codeigniter/system/libraries/Form_validation.php and /codeigniter/system/helper/form_helper.php is exist?? Undefined property: Form::$form_validation - El Forum - 04-25-2011 [eluser]joky[/eluser] yes they both exist... i don't understand why copy/paste from user guide doesn't work... Undefined property: Form::$form_validation - El Forum - 04-25-2011 [eluser]InsiteFX[/eluser] Add this in the top of your controller/index method Code: // Enable Profiler. And see what it says! InsiteFX Undefined property: Form::$form_validation - El Forum - 04-26-2011 [eluser]joky[/eluser] Code: <?php Same output.... Quote:A PHP Error was encountered If it can help, this is the log output (all messages) Quote:<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?> Undefined property: Form::$form_validation - El Forum - 04-26-2011 [eluser]InsiteFX[/eluser] Try changing your controller name to a different one then Form and see if the error goes away! InsiteFX Undefined property: Form::$form_validation - El Forum - 04-27-2011 [eluser]joky[/eluser] Hello, thx again for trying to help me. I changes controller name but i knew it couldn't work because i got the same mistake on another controller. Error : Quote:A PHP Error was encountered File : ugtester.php Uri : http://fb.localhost/index.php/ugtester File Code Code: <?php But maybe my CI is broken, i just dl it and try to make it work and when i try to load a Model this time, I got exactly the same error... In a week i didn't code anything working with CI... Undefined property: Form::$form_validation - El Forum - 04-27-2011 [eluser]joky[/eluser] Well, i found the bug.... An External library in autoload i didn't use.... Sorry for all this stuff and thx for help |