Validation variables missing |
[eluser]t'mo[/eluser]
I noticed a similar problem with the Validation's error messages. When I do: Code: print_r($this->validation); from within the Controller class, all the error messages are present. However, when I attempt to do the same thing from within the View, the messages are an empy Array. I actually need the error messages to show up in the view, so the suggested workaround to check for "isset(...)" won't be very useful. Update This (http://ellislab.com/forums/viewthread/67539/) looks like the same issue... Update 2 Works: load Validation class in the Controller method(s) where required, *do not* load Validation class in either the constructor or autoload.php Code: class MyClass extends Controller Doesn't work (2 examples): #1: load Validation class in Controller constructor Code: class MyClass extends Controller #2: autoload Validation Code: // in autoload.php... And a few further details: running CodeIgniter 1.5.4, Apache 1.3.31 and... Code: $ php -v |
Messages In This Thread |
Validation variables missing - by El Forum - 12-30-2007, 03:51 PM
Validation variables missing - by El Forum - 12-30-2007, 04:07 PM
Validation variables missing - by El Forum - 12-30-2007, 04:15 PM
Validation variables missing - by El Forum - 12-30-2007, 04:17 PM
Validation variables missing - by El Forum - 12-30-2007, 04:32 PM
Validation variables missing - by El Forum - 12-31-2007, 03:00 AM
Validation variables missing - by El Forum - 01-06-2008, 03:04 PM
Validation variables missing - by El Forum - 01-07-2008, 09:33 PM
Validation variables missing - by El Forum - 01-10-2008, 09:13 AM
Validation variables missing - by El Forum - 01-12-2008, 01:11 AM
|