public function getEdit($id)
 {
     $result = array('category' => $this->category->getCategory($id));
     $result['title'] = 'Shop';
     $result['action'] = '/category/edit/' . $result['category']['id'];
     $result['submit'] = 'edit';
     View::make('category.add', $result);
     if (Auth::isAuth()) {
         View::appendTemplateToLayout('topBar', 'top_bar/user');
     } else {
         View::appendTemplateToLayout('topBar', 'top_bar/guest');
     }
     View::appendTemplateToLayout('header', 'includes/header')->appendTemplateToLayout('footer', 'includes/footer')->render();
 }
 public function category($id)
 {
     $product = new Product();
     $products = $product->productCategory($id);
     $category = new Category();
     $categories = $category->getCategory($id);
     $tags = new Tag();
     $image = new Image();
     view('front.category', compact('products', 'image', 'tags', 'categories'));
 }