form validation - error |
[eluser]penta997[/eluser]
hi. I have a problem with a form. When I fill register form, and submit it i have an error: Fatal error: Call to a member function set_rules() on a non-object in... this is my validation function Code: function validate()
[eluser]cideveloper[/eluser]
Where are you loading the form validation class? Code: $this->load->library('form_validation');
[eluser]penta997[/eluser]
In autoload.php file. $autoload['libraries'] = array('database', 'validation','table','calendar', 'session');
[eluser]lennierb5[/eluser]
[quote author="penta997" date="1295163821"]In autoload.php file. $autoload['libraries'] = array('database', 'validation','table','calendar', 'session');[/quote] Change 'validation' to 'form_validation'
[eluser]penta997[/eluser]
now I have another error: Unable to load the requested language file: language/polish/form_validation_lang.php
[eluser]lennierb5[/eluser]
Do you have your Code: $config['language']; If so codeigniter is looking for similar files found in system/language/english in order to display the correct errors. There are some other language packs you can look at here: http://codeigniter.com/wiki/Language_Translation/ There is one for polish but it is 1.7.2.
[eluser]penta997[/eluser]
I have downloaded polish languange pack and it works. |
Welcome Guest, Not a member yet? Register Sign In |