You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m using vanilo in a project I’m working on even though I realise you do not have the 1.0 yet.
I’ve had to modify a method in a controller in vendor/vanilo/framework/resources/views and I was wondering if you envisioned a system to override some of these controllers in the framework properly ?
SO I could have modified views in my main folder and leave everything untouched in vendor.
Thanks again for your help and this cool project
The text was updated successfully, but these errors were encountered:
There were plans on idiomatic controller override, but haven't been implemented (yet) due to the lack of interest (so far) :)
What you can do is to override the route in your project and use your controller for that specific action. As a reference, you can copy the existing methods from the vendor folder.
namespace App\Http\Controllers;
use Vanilo\Framework\Http\Controllers\OrderController as VaniloOrderController;
class OrderController extends VaniloOrderController {
public function show(Order $order)
}
}
And I copied only the show method which I needed to change and everything else still falls back to the code in vendor/vanilo...
I’m using vanilo in a project I’m working on even though I realise you do not have the 1.0 yet.
I’ve had to modify a method in a controller in vendor/vanilo/framework/resources/views and I was wondering if you envisioned a system to override some of these controllers in the framework properly ?
SO I could have modified views in my main folder and leave everything untouched in vendor.
Thanks again for your help and this cool project
The text was updated successfully, but these errors were encountered: