Welcome Guest, Not a member yet? Register   Sign In
Assigning Query (Read) Results to Variables
#6

[eluser]nydeveloper[/eluser]
I'm having some issues with this part:

Quote:yes, use variables in controller like
private $variable1 ; (set accessibility yourself)

what is the proper syntax for defining said variables in the controller?

I've only been able to successfully declare variables in the controller if they are coming from the URI, or if I'm assigning direct values to them in the controller itself.

In this case they are obtaining their value as part of the results of the db select and get in the model...



Messages In This Thread
Assigning Query (Read) Results to Variables - by El Forum - 01-24-2012, 08:50 PM
Assigning Query (Read) Results to Variables - by El Forum - 01-24-2012, 09:02 PM
Assigning Query (Read) Results to Variables - by El Forum - 01-24-2012, 09:23 PM
Assigning Query (Read) Results to Variables - by El Forum - 01-24-2012, 09:25 PM
Assigning Query (Read) Results to Variables - by El Forum - 01-24-2012, 09:31 PM
Assigning Query (Read) Results to Variables - by El Forum - 01-26-2012, 12:55 AM
Assigning Query (Read) Results to Variables - by El Forum - 01-26-2012, 01:26 AM
Assigning Query (Read) Results to Variables - by El Forum - 01-26-2012, 05:26 PM
Assigning Query (Read) Results to Variables - by El Forum - 01-26-2012, 05:35 PM
Assigning Query (Read) Results to Variables - by El Forum - 01-26-2012, 06:42 PM
Assigning Query (Read) Results to Variables - by El Forum - 01-26-2012, 08:17 PM
Assigning Query (Read) Results to Variables - by El Forum - 01-26-2012, 10:48 PM
Assigning Query (Read) Results to Variables - by El Forum - 01-29-2012, 11:04 PM
Assigning Query (Read) Results to Variables - by El Forum - 01-29-2012, 11:18 PM
Assigning Query (Read) Results to Variables - by El Forum - 01-30-2012, 02:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB