[eluser]harman[/eluser]
hi everyBody
i have a question,
Can i call method by string Name, use string as object
Code:
//Current Controller Name
$this->controller_name = $this->router->fetch_directory().$this->router->fetch_class();
//Load Model Same With PostFix "_mod";
$this->load->model($this->controller_name.'_mod');
$ModName=$this->controller_name.'_mod';
//Here is My Problem $ModName is a string i want use as object name can anybody help me
$this->$ModName->myFunc();