Can I use my custom controller and routes in aimeos admin pannel

Help for integrating the Laravel package
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!
awaidqureshi
Posts: 86
Joined: 12 Jan 2019, 15:17

Can I use my custom controller and routes in aimeos admin pannel

Post by awaidqureshi » 30 Jul 2019, 13:44

I want to use my custom laravel controllers and routes in aimeos admin panel
please guide me about this how i can do that.

Thanks

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Can I use my custom controller and routes in aimeos admin pannel

Post by aimeos » 31 Jul 2019, 08:23

You only have to add links to your controllers in the navbar:
https://github.com/aimeos/ai-admin-jqad ... andard.php

Keep in mind that you need the page-standard template code also for your controller templates
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

awaidqureshi
Posts: 86
Joined: 12 Jan 2019, 15:17

Re: Can I use my custom controller and routes in aimeos admin pannel

Post by awaidqureshi » 31 Jul 2019, 11:30

aimeos wrote: 31 Jul 2019, 08:23 You only have to add links to your controllers in the navbar:
https://github.com/aimeos/ai-admin-jqad ... andard.php

Keep in mind that you need the page-standard template code also for your controller templates

Can u please give me some proper example that will be a great favour .

Basicaly i have to use my own controller and tables data with Models in aimeos admin pannel so kindly give me some proper example so that i can implement those
thanks.

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Can I use my custom controller and routes in aimeos admin pannel

Post by aimeos » 01 Aug 2019, 09:08

You can copy the page-standard.php file to your own Aimeos extension and add an icon and link to your Laravel controller action. Then, you need to recreate the HTML for the page-standard.php template somehow in your own template so it looks the same for the user.

An alternative with less work would be to add the link to your Laravel controller action to the base template next to the "Logout" link. Therefore, you only have to copy the https://github.com/aimeos/aimeos-larave ... .blade.php file to your ./resources/views/vendor/shop/admin/ directory and adapt it to your needs.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply