make a new route for a template
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!
- ahmed31916
- Advanced
- Posts: 148
- Joined: 14 Apr 2022, 12:15
make a new route for a template
Hello Aimeos,
How to make a new route nested from "profile", I have seen helper function "link", but I didn't know how to use it.
How to make a new route nested from "profile", I have seen helper function "link", but I didn't know how to use it.
Re: make a new route for a template
You can use the Laravel route() method in the Aimeos templates too to generate the route by name.
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
- ahmed31916
- Advanced
- Posts: 148
- Joined: 14 Apr 2022, 12:15
Re: make a new route for a template
No aimeos, I didn't mean this.
I mean how to make a new route for any domain related to the "profile" for example: "profile/something" and this route should be redirects to favorite page (not to "profile" page)?
I tried to make ("profile/products"), using aimeos way, but the route redirects to index profile page (not a new page).
I tried to making a new route using laravel Route but it makes things a little complicated.
I mean how to make a new route for any domain related to the "profile" for example: "profile/something" and this route should be redirects to favorite page (not to "profile" page)?
I tried to make ("profile/products"), using aimeos way, but the route redirects to index profile page (not a new page).
I tried to making a new route using laravel Route but it makes things a little complicated.
Re: make a new route for a template
You always have to define a new route in Laravel for "/profile/something" because Aimeos uses the Laravel routing implementation. If that works, you can give the new route a name in the ./routes/web.php file (e.g. "profile-something") and use that name as parameter to the route() method.
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
- TEJASPARMAR
- Posts: 15
- Joined: 20 Mar 2024, 11:53
Re: make a new route for a template
So, we can't define a route within an extension we have created?
Re: make a new route for a template
No, only in the Laravel application itself
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