It is NOT class variable but instance variable if you define/access it this way.
Most of the time in PHP, i forget including $ in variable name. Try as
$this->$res = "blah";
Atilla Ozgur
2010-10-08 11:51:40
It is NOT class variable but instance variable if you define/access it this way.
Most of the time in PHP, i forget including $ in variable name. Try as
$this->$res = "blah";
You made a typo @
$x="blah"
(missing ;
)
Working code: http://ideone.com/jmICU
(Controller stripped out)
Please let me know if my answer has worked.