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

[eluser]cz231[/eluser]
Hi,

I'm relatively new to codeigniter, and as such am still learning some of the principles of it. Recently, I was trying to pass a variable to the view from the controller with the data array. Specifically, I wanted to pass a message to the view. But currently, with the way I have it set up, if the user accesses the page without getting the variable assigned anything, ci throws an error.

How do I set an automatic empty value for the variable that will only get overrode if something specific is assigned?

Thanks


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