• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Do YOU use CodeIgniter's form helpers?

[quote author="Calvin Froedge" date="1297920179"]@Jaketoolson set_value is defined in the form_validation class. The form helper only initializes set_value if it doesn't already exist.
That's partially correct. set_value() is defined in the form_helper.php file, which is autoloaded by the validation library in it's constructor. This allow you to use set_value() as a standalone function in views and controllers.

It is also defined in the validation library, however it is a little different code-wise. Also, I have never seen anyone use it, as you would have to call it by $this->form_validation->set_value() from the controller or view, instead of just the helper, set_value().

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.