コード例 #1
0
 /**
  * Action responsible to display a list of pages with required data.
  *
  * @return \Phalcon\Http\ResponseInterface
  * @throws \Api\Exception\NotImplementedException
  */
 public function listAction()
 {
     $pages = \Page\Model\Page::find();
     $filter = new \Api\Filter\PagesList();
     $payload = new \Api\Model\Payload($filter->filter($pages));
     return $this->render($payload);
 }
コード例 #2
0
 public function indexAction()
 {
     $this->view->entries = Page::find();
     $this->view->title = 'Список страниц';
     $this->helper->title('Список страниц');
 }
コード例 #3
0
 public function indexAction()
 {
     $this->view->entries = Page::find();
     $this->helper->title($this->helper->at('Manage Pages'), true);
 }