I'm trying to make a very easy function to assign variables to a child variables of a function.
The best will be something like this :
$this->assign($param1, $param2, $param3);
and in the assign function:
public function assign(){
$aArgs = func_get_args();
foreach($aArgs as $key => $value){
$this->data->{**NAME OF the arg (ex : param1)**} = $value;
}
}
Nobody have a little trick or solution? (please don't say that's is impossible, try to make the impossible possible with creative solution like debug_backtrace
etc ;-))