Example #1
0
 protected function get_index_url()
 {
     if (null !== $this->_index_url) {
         return $this->_index_url;
     }
     $module = $this->getRequest()->getModuleName();
     $this->_index_url = "/" . ('index' == strtolower($module) ? null : $module . "/") . Inflect::underscore($this->getRequest()->getControllerName()) . "/index";
     $this->getView()->assign('index_url', $this->_index_url);
     return $this->_index_url;
 }
Example #2
0
 public function factory_name()
 {
     $class = str_replace('Merchant_Billing_', '', get_class($this));
     return Inflect::underscore($class);
 }