manfield Posted April 3, 2017 Share Posted April 3, 2017 I noticed a nice feature I'm trying to use, in PS 1.7. When a module declares controller pages, these are automatically listed in SEO & URL table. i.e: module-mymodule-controllerpage I tried to assign a friendly URL to this item, for example mycontroller. I tried to call $host/mycontroller and I always have a 404 error. Where am I wrong? is it a feature in development yet? Thanks a lot Manredi Link to comment Share on other sites More sharing options...
manfield Posted April 3, 2017 Author Share Posted April 3, 2017 I found the solution. controllerpage.php should be a controller class, having a specific name: mymodulecontrollerpageModuleFrontController it may extend ModuleFrontController or simply implement run() method. This way I can assign a rewrite_url to the controller declared in the module. Nice! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now