コード例 #1
0
 public function indexAction()
 {
     parent::indexAction();
     $config = array(Zend_Navigation_Page_Mvc::factory(array('label' => 'На сайт', 'uri' => '/')));
     $containerNav = new Zend_Navigation($config);
     $this->view->assign('container_nav', $containerNav);
 }
コード例 #2
0
 public function indexAction()
 {
     parent::indexAction();
     $config = array(Zend_Navigation_Page_Mvc::factory(array('label' => 'На сайт', 'uri' => '/pipeline/')));
     $containerNav = new Zend_Navigation($config);
     $editUrlOptions = array('module' => 'admin', 'controller' => 'pages', 'action' => 'edit', 'id' => $this->getPageModule('pipeline')->getId());
     $this->view->assign(array('editUrlOptions' => $editUrlOptions, 'container_nav' => $containerNav));
 }
コード例 #3
0
 public function indexAction()
 {
     if ($this->_request->getParam('category_id')) {
         $category = $this->_modelCategoriesMapper->find($this->_request->getParam('category_id'), new Manufacture_Model_ManufactureCategories());
         $category && $this->view->assign('categoryName', $category->getTitle() . ' - ');
         $this->view->assign('category_id', $this->_request->getParam('category_id'));
     }
     parent::indexAction();
 }
コード例 #4
0
 public function indexAction()
 {
     if ($this->_request->getParam('category_id')) {
         $category = $this->_modelCategoriesMapper->find($this->_request->getParam('category_id'), new Media_Model_MediaCategories());
         $category && ($this->view->categoryName = $category->getName() . ' - ');
         $this->view->assign('category_id', $this->_request->getParam('category_id'));
     }
     parent::indexAction();
 }
コード例 #5
0
 public function indexAction()
 {
     $categoryId = $this->_request->getParam('category_id');
     if ($categoryId) {
         $categoryMapper = new Oil_Model_Mapper_OilCategories();
         $category = $categoryMapper->find($categoryId, new Oil_Model_OilCategories());
         $category && $this->view->assign('categoryName', $category->getTitle() . ' - ');
         $this->view->assign('category_id', $this->_request->getParam('category_id'));
     }
     parent::indexAction();
 }