Method src does not exist error in laravel
Posted: Tue Sep 29, 2015 3:20 pm
I was just trying to create a link in laravel like so:
I have a products controller with the following method in it:
Also i have a products view under the store folder, i.e. products.blade.php,
now when i click on the link on the index page on I.E. the below link:
I expect the below view to open:
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 ?
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 ?