'procates'=>$procates,
'url_flag' => 'product_index',
'page_info' => $page_info,
]);
return $this->view->fetch('product/index');
}
public function category($category,$page=1){
$procate = Procate::where('url','=',$category)->find();
$product = \app\admin\model\Product::field('id,name,list_image,page_url,release_time,introduction,attr_one,attr_two,attr_three')
->where('procate_id',$procate['id'])->order('sort_t desc')->paginate([
'page'=>$page,
'list_rows'=>$this->product_list_rows,
'path'=>'/'.$category.'/list-[PAGE]/'
]);
$this->assign([
'procate' => $procate,
'page' => $page,
'product' => $product,
'url_flag' => 'product_category',