Пример #1
0
 /**
  * @template Index.txt
  * @param \Janeiro\Request\Cli $request
  */
 public function indexAction(Cli $request)
 {
     if ($request->getParameter(0)) {
         $this->dispatcher->forward(['controller' => $request->getParameter(0)]);
     } else {
         echo $this->view->render();
     }
 }
Пример #2
0
 /**
  * @param \Janeiro\Request\AbstractRequest $request
  * @template Schema/Index.txt
  */
 public function indexAction(AbstractRequest $request)
 {
     if ($request->getParameter(1)) {
         $this->dispatcher->forward(['action' => $request->getParameter(1)]);
     } else {
         echo $this->view->render();
     }
 }