Welcome Guest, Not a member yet? Register   Sign In
Strange behaviour with views and arguments
#1

Hey guys,

I've got a very strange behaviour with views and arguments.

So I am loading multiple views in 1 page and I give the first multiple arguments like 'image_src' and 'image_alt' and the strange thing is now, when I do not give the next view (which is structured like the first) any arguments, the arguments from the first view are taken.
Just as if CodeIgniter is caching them or something.

I checked my entire code, I used a var_dump to check if the arguments are set, they are not.
Then I'm loading the view via CodeIgniter and then they are there.

Is this a bug in CodeIgniter or a feature? Is there a workaround?

Unfortunately I am using CodeIgniter 1.7.2 and my colleagues and I can't upgrade, beacuse there was to much changed in the core functionality of CodeIgniter.
And if we are going to upgrade, everything's gonna explode..

Thanks in Advance.
Reply


Messages In This Thread
Strange behaviour with views and arguments - by GiftZwergrapper - 06-09-2016, 11:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB