I am using laravel 4.2
The file Route.php contains this:
Route::get('/purchase_invoices/{PURCHASEQUOTATION_ID}/copyfromquote',
'PurchaseInvoicesController@copyfromquote');
and my function does this:
public function copyfromquote($id) {
return View::make('purchase_invoices.create');
}
When I navigate to http://localhost/purchase_invoices/8/copyfromquote, I get screen with message
This web page is not available
ERR_CONNECTION_RESET
I am clueless.
I am using the same method with other URLs, and it works. I only have the problem with purchase_invoices
.
Can you try this?
Route::get('/purchase_invoices/{PURCHASEQUOTATION_ID}', array(
'as' =>'choose a named route',
'uses' =>'PurchaseInvoicesController@copyfromquote'
));
And show us the Blade page:
From other posts in SO:
Check your syntax in your blade page: It could be the following:
The Blade inside of your Blade comments are still being parsed into PHP. The PHP end tags inside of the PHP block-comment is causing the PHP parser to end early, resulting in some badly formed PHP/HTML that could be crashing your connection (likely caused by the dangling */ ?>).