Ejemplo n.º 1
0
 public function testGetActionPath()
 {
     $this->assertEquals('', $this->_model->getActionPath());
     $this->_model->setRoutePath('catalog/product/view/id/50');
     $this->assertEquals('catalog/product/view/', $this->_model->getActionPath());
 }
Ejemplo n.º 2
0
 /**
  * Retrieve action path.
  * Add backend area front name as a prefix to action path
  *
  * @return string
  */
 public function getActionPath()
 {
     $path = parent::getActionPath();
     if ($path) {
         if ($this->getAreaFrontName()) {
             $path = $this->getAreaFrontName() . '/' . $path;
         }
     }
     return $path;
 }