コード例 #1
0
 public function viewAction()
 {
     $product = $this->_catalogModel->getProductByIdent($this->_getParam('productIdent', 0));
     if (null === $product) {
         throw new SF_Exception_404('Unknown product ' . $this->_getParam('productIdent'));
     }
     $category = $this->_catalogModel->getCategoryByIdent($this->_getParam('categoryIdent', ''));
     $this->getBreadcrumb($category);
     $this->view->assign(array('product' => $product));
 }