Welcome Guest, Not a member yet? Register   Sign In
Variable from Controller not working in Views
#2

[eluser]xtremer360[/eluser]
That's because you have to define the data array key before you send the data array to the view file. So what I would suggest is sense both the key values are the same that are inside the if and else statements I suggest you take it out of it and move it to the bottom that way you only have to have that line once that way those bottom three lines will all work for you.


Messages In This Thread
Variable from Controller not working in Views - by El Forum - 08-16-2012, 05:07 PM
Variable from Controller not working in Views - by El Forum - 08-16-2012, 05:15 PM
Variable from Controller not working in Views - by El Forum - 08-16-2012, 05:18 PM
Variable from Controller not working in Views - by El Forum - 08-16-2012, 05:19 PM
Variable from Controller not working in Views - by El Forum - 08-16-2012, 05:45 PM
Variable from Controller not working in Views - by El Forum - 08-16-2012, 06:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB