public function indexAction() { parent::init(); parent::ajaxEnabled(); $modelMeals = new Model_Meals(); $page = $this->_getParam('page', 1); $orderBy = $this->_getParam('orderBy', 'title'); $orderBySort = $this->_getParam('orderBySort', 'ASC'); $this->view->meals = $modelMeals->fetchAllWithPagination($page, $orderBy, $orderBySort); }