Undefined property: Form::$form_validation |
[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
[eluser]Nur Cholikul Anwar[/eluser]
PLease copy your tests/myform and tests/formsuccess
[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
[eluser]Nur Cholikul Anwar[/eluser]
Please check what file /codeigniter/system/libraries/Form_validation.php and /codeigniter/system/helper/form_helper.php is exist??
[eluser]joky[/eluser]
yes they both exist... i don't understand why copy/paste from user guide doesn't work...
[eluser]InsiteFX[/eluser]
Add this in the top of your controller/index method Code: // Enable Profiler. And see what it says! InsiteFX
[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'); ?>
[eluser]InsiteFX[/eluser]
Try changing your controller name to a different one then Form and see if the error goes away! InsiteFX
[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...
[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 |
Welcome Guest, Not a member yet? Register Sign In |