Esempio n. 1
0
 public function getControllerInformation($module_name)
 {
     if (!$this->_controllerInformation) {
         $router_object = new Mage_Core_Controller_Varien_Router_Standard();
         $this->_controllerInformation = array();
         $this->_controllerInformation['class_file'] = $router_object->getControllerFileName($module_name, $this->getUrlControllerName());
         $this->_controllerInformation['class_name'] = $router_object->getControllerClassName($module_name, $this->getUrlControllerName());
     }
     return $this->_controllerInformation;
 }
Esempio n. 2
0
 public function testGetControllerClassName()
 {
     $this->assertEquals('Mage_Core_IndexController', $this->_model->getControllerClassName('Mage_Core', 'index'));
 }