request->param('id')); // Only show categories that are active. if (! $pco->loaded() OR ((! $pco->status AND ! Kohana::$config->load('debug')->show_inactive))) HTTP::redirect('welcome/index'); Style::factory() ->type('file') ->data('media/css/pages/welcome.css'); return $this->template->content = (string)$pco->template(); } /** * Show a product */ public function action_view() { $id = $this->request->param('id'); $po = ORM::factory('Product',$id); if (! $po->loaded()) HTTP::redirect('welcome/index'); // @todo This breadcrumb may not be working anymore. #BreadCrumb::name($this->request->uri(),$po->product_translate->find()->name); #BreadCrumb::url('product','product/categorys'); $this->template->content = (string)View::factory('product/view') ->set('o',$po); } } ?>