/** * Display product details * @param type $id */ public function showAction($id) { $product = Product::find($id); $this->render('show', array('record' => $product, 'title' => 'Show the Product')); }
/** * Display product details * @param type $id */ public function showAction($id) { $product = Product::find($id); $content = View::create('Apps.Views.product.show', ['record' => $product, 'title' => 'Show the Product']); return Response::make($content); }