Code: Select all
<li><a href="products/productspg">products</a></li>
Code: Select all
public function getProductpg() {
return View::make('store.products')
->with('products' , Product::take(4)->orderBy('created_at' , 'DESC')->get());
}
now when i click on the link on the index page on I.E. the below link:
Code: Select all
<li><a href="products/productspg">products</a></li>
products.blade.php , instead i get the following error :
http://i.imgur.com/Dukx61B.jpg
Now why am i getting this error , when i try to load even the index page of my app, this is not working , Why ?