public function productsdisplayAction() { //$this->_helper->layout()->setLayout('admin'); $products = new Model_Products(); $generic = new Model_Generic(); $categories = new Model_Categories(); $product_id = $this->_getParam('pid'); $this->view->data = $products->ListProducts($product_id); $this->view->images = $products->DisplayProductImages($product_id); $this->view->product_attributes = $products->DisplayProductAttributes($product_id); $this->view->product_categories = $products->GetProductTreeIDs($product_id); $this->view->Brands = $generic->getData("Brands"); #$this->view->Categories = $generic->getData("Category","","Name asc"); $this->view->category_tree = $categories->listCategoryTree(); $this->view->orphan_categories = $categories->listOrphanCategories(); $this->render('productscreate'); }