Welcome Guest, Not a member yet? Register   Sign In
Validation errors not showing
#5

[eluser]fandelost[/eluser]
Wow! I think I finally solved this one, but it's a really odd solution.

First of all, after some testing, I found that the values from the form where not even POSTed to the Controller (at least not accesible with $this->input->post()), but if I created a new function and target my forms to it, the values would show up.

So I changed the Route from
Code:
$route['ingresar'] = "main/ingresar";
to
Code:
$route['do_ingresar'] = "main/ingresar";

..then I did the corresponding change in the View, from
Code:
echo form_open('ingresar');
to
Code:
echo form_open('do_ingresar');

That's it! However if I change 'do_ingresar' to some other values, It *might* go back to the original issue, like with 'iniciar_sesion' or 'inicio', but not with other words like 'asd' or 'testing'. Know how do you explain that language-nazi (kidding) uri routing?

I checked for the troublesome names to be duplicated somewhere, but no. Really creepy, I don't even know if this is a bug in CI or what, I checked it on several browsers and machines (in case it had to do with the cache of redirects) but it's the same in all.


Messages In This Thread
Validation errors not showing - by El Forum - 11-28-2008, 06:53 AM
Validation errors not showing - by El Forum - 11-28-2008, 06:57 AM
Validation errors not showing - by El Forum - 11-28-2008, 07:27 AM
Validation errors not showing - by El Forum - 11-28-2008, 08:32 AM
Validation errors not showing - by El Forum - 11-28-2008, 03:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB