Welcome Guest, Not a member yet? Register   Sign In
Strange behaviour using set_flashdata and redirect
#11

[eluser]skunkbad[/eluser]
[quote author="CARP" date="1271215507"]To be honest @skunkbad, didn't get any idea from your post. My english su**s[/quote]

Basically, the set_flashdata isn't working because of the redirect. The flashdata cannot be set because the header that sets the cookie never gets a chance to make it to the browser. You will need do something different.
#12

[eluser]CARP[/eluser]
Oops. I never said the flash_data isn't working. The flashdata message shows fine, perfectly. The thing is that when I call again the same function (from the redirect), it seems it doesn't load the helpers, models, etc.

Hope you've understood me
#13

[eluser]danmontgomery[/eluser]
Can you paste the exact text of the error you're getting?
#14

[eluser]CARP[/eluser]
I'm not getting any error.
I'm just a very big dumb***

I've redirected to the bad controller. I was working in the "article" controller and after submitting the article form, i was doing the redirection to the "category" form, that's why I was seeing "less" fields, etc.




Theme © iAndrew 2016 - Forum software by © MyBB