예제 #1
0
파일: Restfull.php 프로젝트: xinson/yafPlus
 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;
 }
예제 #2
0
 public function factory_name()
 {
     $class = str_replace('Merchant_Billing_', '', get_class($this));
     return Inflect::underscore($class);
 }