/** * 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); }
public function indexAction() { $this->view->entries = Page::find(); $this->view->title = 'Список страниц'; $this->helper->title('Список страниц'); }
public function indexAction() { $this->view->entries = Page::find(); $this->helper->title($this->helper->at('Manage Pages'), true); }