CodeIgniter Forums
a problem with form_validation in CI 2.0 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: a problem with form_validation in CI 2.0 (/thread-34804.html)



a problem with form_validation in CI 2.0 - El Forum - 10-10-2010

[eluser]Ali Fattahi[/eluser]
Hi
i have a problem with form_validation in CI 2.0
How can i pass translated fields name in array ?
in CI 1.7.2 We had $this->validation->set_fields() but in CI 2.0 ?!!?

The My Huge Problem in Upgrade to 2.0 is this Library with deprecated in this version Sad i must upgrade my project to CI2.0 But i can't upgrade because this library Sad


a problem with form_validation in CI 2.0 - El Forum - 10-10-2010

[eluser]victorche[/eluser]
@Ali, you're asking about this validation in 100 different topics. They already gave you the answer. Since 1.7.0 this library 'validation' is deprecated. It stays still in 1.7.2 just for compatibility. You should use form_validation.
Don't you see the name change?


a problem with form_validation in CI 2.0 - El Forum - 10-10-2010

[eluser]Ali Fattahi[/eluser]
yes , i konw that changed in CI 2.0 But my question is How can i pass translated fields name in array ?


a problem with form_validation in CI 2.0 - El Forum - 10-10-2010

[eluser]Jelmer[/eluser]
Have you maybe tried looking in the user guide where it's all explained? Or do you just like to let others do your work for you?


a problem with form_validation in CI 2.0 - El Forum - 10-10-2010

[eluser]Ali Fattahi[/eluser]
[quote author="Jelmer" date="1286733115"]Have you maybe tried looking in the user guide where it's all explained? Or do you just like to let others do your work for you?[/quote]

can you please show me where is the document about passing tranlated array to form_validation library in user guide version 2,0 ? i readed that user guid but realy coulden't find about this !
Best Wishes!
Ali


a problem with form_validation in CI 2.0 - El Forum - 10-10-2010

[eluser]InsiteFX[/eluser]
Maybe look in the User Guide under Langage Class!

InsiteFX


a problem with form_validation in CI 2.0 - El Forum - 10-10-2010

[eluser]Jelmer[/eluser]
Translating Field Names

Setting Rules Using an Array

It took me less then 30 seconds to look these up. It's not that hard, just try to think for yourself and don't start topics with lazy questions.