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

[eluser]Bhashkar Yadav[/eluser]
yes, use variables in controller like
private $variable1 ; (set accessibility yourself)

and assign values into controller method getStudentGrades() using $this

Code:
$this->variable1 = $value1;

$this->variable1 can be used into other methods also.


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