コード例 #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
ファイル: Gateway.php プロジェクト: nikolas/Aktive-Merchant
 public function factory_name()
 {
     $class = str_replace('Merchant_Billing_', '', get_class($this));
     return Inflect::underscore($class);
 }