Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Validation Class Crashes Oil
I have been trying to play with the Validation class using the console in Oil, but it seems that it's not possible: a validation object can be instantiated, but it looks like trying to add a field or a validation rules crashes the console. To see what happens, please try this: > oil console
Fuel 1.0.1 - PHP 5.3.6 (cli) (Jun 16 2011 22:23:58) [Darwin]
>>> $val = Validation::factory()
>>> $val->add_field('username', 'Your username', 'required')
PHP Fatal error: Nesting level too deep - recursive dependency? in /Users/[...]/fuel/packages/oil/classes/console.php on line 111
Error - Nesting level too deep - recursive dependency? in PKGPATH/oil/classes/console.php on line 111 Am I doing something obviously wrong, or is this a bug?
Add a Comment
It looks like you're new here. If you want to get involved, click one of these buttons!
Apply for Membership
↳ Job Board
↳ Installation & Setup
↳ Tips and Tutorials
↳ Code share