public function indexAction() { $this->view->form = $form = new Ynadvsearch_Form_Admin_Content_Create(); $type_element = $form->getElement('type'); $this->view->canCreate = true; if (!$type_element) { $this->view->canCreate = false; } $this->view->page = $page = $this->_getParam('page', 1); $this->view->paginator = Engine_Api::_()->getItemTable('ynadvsearch_contenttype')->getContentTypesPaginator(); $this->view->paginator->setItemCountPerPage(20); $this->view->paginator->setCurrentPageNumber($page); }