Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2011
2,149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.05 KB | None | 0 0
  1. public function systemsAction()
  2.     {
  3.         $key = $this->_getParam('key');
  4.  
  5.         $brand_table = Brand::getInstance();
  6.         $brand = $brand_table->findByKey($key);
  7.         $this->view->brand = $brand;
  8.  
  9.         $letter = $brand->findParentRow('Dd_Alphabet');
  10.  
  11.         $system_table = Brand_System::getInstance();
  12.         $this->view->systems = $system_table->findByBrandId($brand->brand_id);
  13.  
  14.         $this->view->placeholder('title')->set('Системы бренда ' . $brand->name);
  15.         $this->view->headTitle('Системы бренда ' . $brand->name);
  16.         $this->view->headTitle($brand->name);
  17.         $this->view->headTitle($letter->value);
  18.  
  19.         $page = $this->_helper->navigation()->findBy('label', 'Бренд');
  20.         $page->setLabel($brand->name);
  21.         $page->setParams(array('key' => $brand->key));
  22.  
  23.         $page = $this->_helper->navigation()->findBy('label', 'Буква бренда');
  24.         $page->setLabel($letter->value);
  25.         $page->setParams(array('alphabet_id' => $letter->alphabet_id));
  26.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement