public function index() { $Cart = new Cart(); $this->cart_price = $Cart->getPrice(); $this->gc_list = M('GoodsClass')->where(array('gc_parent_id' => 0))->order('gc_sort desc')->select(); $this->display('Widget:Nav:index'); }