Welcome Guest, Not a member yet? Register   Sign In
Passing the data array
#2

[eluser]wowdezign[/eluser]
If I understood you correctly, you only want to take action if the variable exists in the view.

I that is correct, depending on the rest of the code, I normally use something like:
Code:
if(isset($varFromController)){
    echo $varFromController;
}

In my view file.

This way, it only gets written if the variable is set, that wat I don't have to pass the variable in from every controller.


Messages In This Thread
Passing the data array - by El Forum - 07-29-2009, 09:31 AM
Passing the data array - by El Forum - 07-29-2009, 09:51 AM
Passing the data array - by El Forum - 07-29-2009, 09:57 AM
Passing the data array - by El Forum - 07-29-2009, 10:15 AM
Passing the data array - by El Forum - 07-29-2009, 10:30 AM
Passing the data array - by El Forum - 07-29-2009, 10:37 AM
Passing the data array - by El Forum - 07-29-2009, 04:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB