Hello.
I'm developing an extra following the doodles tutorial.
Has I understand the Actions are routed to the a class named by concatenating the Action name and "ManagerController" located in the file (ActionName).class.php in the Core_Path of the namespace.
I can also pass an action parameter in the link and the controller automatically would redirect it to the appropriate class in a file located in the "controllers" folder or subfolder
Something like
http://localhost/modx-2.2.1-pl/manager/index.php?a=79&action=product/create
It's nice that this action can also define subfolders to help keep things organized.
In this case it would be redirected to a file named "create.class.php" located in the "controllers/product" subfolder of my namespace core_path containing the MyextraProductCreateManagerController class
But what if I want to create a direct action menu?
ModActions also accept path to the action but the path root is the namespace core.
So..if I want a menu to the product/create action I would have to create a "product" folder in the namespace core path, outside the "controllers" folder.
Other option is to name the action product_update and have a product_update.class.php in the core_path and redirect to the correct class MyextraProductCreateManagerController.
None of this options seem elegant to me.
What is the correct way to create more action menus for my extra?
Can someone help?
Thanks