Where and how change controller logic of modules?
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Where and how change controller logic of modules?
Where and how to change logic of modules (controllers)? For example catalog/lists?
I tried to create an extentions then I copied the exist core controller into a new extention directory:
Inside method of controller I have added the following:
The I reset the cache views. But there is not result
I tried to create an extentions then I copied the exist core controller into a new extention directory:
Code: Select all
\sumka\myshop\packages\sumka\src\CatalogController.php
Code: Select all
public function homeAction()
{
echo "test"
}
Re: Where and how change controller logic of modules?
You can't overwrite classes in Laravel that way. If you implement a new controller like you did, you can add a new route in your ./routes/web.php or replace an Aimeos route with your new controller if you disable the Aimeos route first:
https://github.com/aimeos/aimeos-larave ... #L257-L267
https://github.com/aimeos/aimeos-larave ... #L257-L267
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star