How can I use Namespaces and USE function in magento 1.9 ? I dont want to use require or include function just set one namespaces and use this in my controller like laravel or magento 2. Is it possible in magento 1.9.
You can do this with
_forward() method like this:
$this->_forward($action = 'methodName', $controller = 'controller_name', $module = 'Modulename', $params = array('id'=>$id))
But it's not a best way and a good practice, I suggest you to create your function in a
helper and call this function from a helper to the both controllers !