I have code in cake php that looks like:
public $ceff_instance = array();
public function __construct() {
$this->ceff_instance = $this->wsMethod_GO();
}
protected $filedMethodMappings = $this->$ceff_instance;
Where $wsMethod_GO returns an array. However, it says that there is an unexpected T_FUNCTION on the line where I try to put the $ceff_instance array into $filedMethodMappings. What is the reason for this?
I can’t figure it out for the life of me.
You can’t set use
$thisoutside of methods.DEMO: http://codepad.org/1V6ChkY0