예제 #1
0
 /**
  * gets action method
  *
  * @return string
  */
 public function getActionMethod()
 {
     $actionMethod = Util::getCamelCased($this->request->getActionName()) . 'Action';
     $actionMethod = lcfirst($actionMethod);
     return $actionMethod;
 }
예제 #2
0
파일: View.php 프로젝트: sigma-z/jentin
 /**
  * sets template path by request
  *
  * @param RequestInterface $request
  */
 public function setTemplatePathByRequest(RequestInterface $request)
 {
     $params = array('action' => $request->getActionName(), 'controller' => $request->getControllerName(), 'module' => $request->getModuleName());
     $templatePath = Util::parsePattern($this->viewPathPattern, $params);
     $this->getRenderer()->setTemplatePath($templatePath);
 }