コード例 #1
0
 /**
  *  Display product details
  * @param type $id
  */
 public function showAction($id)
 {
     $product = Product::find($id);
     $this->render('show', array('record' => $product, 'title' => 'Show the Product'));
 }
コード例 #2
0
 /**
  *  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);
 }