How is this possible? |
[eluser]Kristof[/eluser]
So i'm new to CI and i'm working with recaptcha i found the plugin on the codeigniter wiki. Now the plugin works just fine, but since i like to know how al things work, i'm strugling with one part. In the configfile there is a file named form_validation.php it contains only this: Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); Code: class Recaptchademo extends Controller { Now i don't understand how it's possible that the form_validation works. If i rename the config file to test.php is does not work. But where is the form_validation loaded then? I only see the library being loaded, not that config-file?
[eluser]pistolPete[/eluser]
[quote author="Kristof" date="1251651502"]... But where is the form_validation loaded then? I only see the library being loaded, not that config-file?[/quote] Have a look at the user guide: Quote:Saving Sets of Validation Rules to a Config File
[eluser]Kristof[/eluser]
thanks that indeed answers my question. Should have looked more carefully in the usersguide, i always state my rules within the controller, well not anymore thanks again |
Welcome Guest, Not a member yet? Register Sign In |