This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » eZ Publish 5 Platform » siteaccess aware custom controller
expandshrink

siteaccess aware custom controller

siteaccess aware custom controller

Friday 13 June 2014 5:37:27 am - 2 replies

If I was to create a new bundle the default controller for that bundle would be found at /hello. If I had mutiple site accesses then how would I get it also at /eng/hello, /fre/hello etc?

Does this have to be done by defining a route for each site access or is there a better way to handle this to allow controllers to be partof the usual siteacess url scheme?

Friday 13 June 2014 9:35:45 am

Hi Douglas

You can safely ignore the SiteAccess URI part, it's automatically resolved by the Router. In your example, all you have to do is to declare a route for /hello.

Friday 13 June 2014 4:56:00 pm

I tried before and it was not working but it is today.  Great.

 

Thanks you for confirming this.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from