Search code examples
phpzend-frameworkpimcore

How pimcore routes work?


I am trying to use pimcore but i am stuck with routes.

Still their is not so much detailed documentation on routes how to create & use them. I also want to create URL like http://www.example.com/controller/action but i did not get any way to do it.

Thanks


Solution

  • Controllers/Actions are handled by documents in Pimcore. Just asign a controller and action to a document and the route will be generated by Pimcore.

    It is explained in the documentation: Documents

    On the other hand, you can use magic parameters to access to a controller/action directly:

    /?controller=myController&action=myAction
    

    Hope this help.