Welcome Guest, Not a member yet? Register   Sign In
Echo If Isset Function
#9

[eluser]pbflash[/eluser]
[quote author="smithme08" date="1327362446"]$data["some_value"] is declared in the controller, but is accessible as $some_value in the view, so your comment is not entirely accurate in this case.

Its a question of HOW its available in the view which makes all the difference.[/quote]

The comment is accurate. The variable is available in the view because you are passing the $data array to the view function which then makes it available in the view.


Messages In This Thread
Echo If Isset Function - by El Forum - 01-23-2012, 04:12 PM
Echo If Isset Function - by El Forum - 01-23-2012, 04:22 PM
Echo If Isset Function - by El Forum - 01-23-2012, 04:26 PM
Echo If Isset Function - by El Forum - 01-23-2012, 04:28 PM
Echo If Isset Function - by El Forum - 01-23-2012, 04:32 PM
Echo If Isset Function - by El Forum - 01-23-2012, 04:47 PM
Echo If Isset Function - by El Forum - 01-23-2012, 05:27 PM
Echo If Isset Function - by El Forum - 01-23-2012, 05:31 PM
Echo If Isset Function - by El Forum - 01-23-2012, 05:34 PM
Echo If Isset Function - by El Forum - 01-23-2012, 05:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB