Welcome Guest, Not a member yet? Register   Sign In
variables in views
#2

[eluser]Tim Brownlaw[/eluser]
I don't quite see the case where you'd be calling the same view with and without data...

But if there is the case and you implement your patch - what you have forgotten to mention is the need to use something like this in your view

Code:
<?php echo isset($x)?$x:'';  // '' or whatever the default is meant to be?>

If you don't you'll be generating an error message asking you what $x is meant to be!


Messages In This Thread
variables in views - by El Forum - 09-04-2014, 05:01 AM
variables in views - by El Forum - 09-04-2014, 05:31 AM
variables in views - by El Forum - 09-04-2014, 08:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB