Example #1
0
 public function resultAction()
 {
     $brand_id = $this->_getParam('brand_id', 0);
     $index = new Application_Model_DbTable_Index();
     $brands = $index->getModelsByBrand($brand_id);
     if ($brands['status']) {
         $this->view->model = $brands['value'];
     }
     $news = $index->getBrandById($brand_id);
     if ($news['status']) {
         $this->view->brand = $news['value'];
     }
     $parts = $index->getAutoPartByBrand($brand_id);
     if ($parts['status']) {
         $this->view->autopart = $parts['value'];
     }
 }