Welcome Guest, Not a member yet? Register   Sign In
Config file form validation rule groups: doesn't work with controller in sub-folder?
#4

[eluser]Unknown[/eluser]
I have the same issue and have some remarks.
I think this is not working really well. Or I'm not using it correctly Smile

- the detection of validation rule in $config is case sensitive. So although the Router is not (I can use http://myuri/Member/Signup or http://myuri/member/signup and it will use the right controller and method), the validation is. Which means that if I change the casing, I get an error logged as it doesn't find any validation rule.

- "ruri_string()" also includes the method parameter. So it works only with methods without any parameter which is quite limitative.


I'm quite new to CodeIgniter and I don't know well its code and all the user cases, but maybe it will work better if Form_Validation->run() was using router->fetch_class() and router->fetch_method() instead of ruri_string(), no ?


Messages In This Thread
Config file form validation rule groups: doesn't work with controller in sub-folder? - by El Forum - 07-20-2010, 02:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB