/** * Shows the product information page. * * @access public * @param string * @return Redirect */ public function getIndex($product_slug = null) { // Check if the product exists. // if (!($product = Products::find($product_slug))) { // Redirect back to the home page. // return Redirect::to('shpcart')->with('error', 'The product does not exist!'); } // Show the page. // return View::make('shpcart::view')->with('product', $product); //return "hello"; }