Friday, October 22, 2010

Modx 2 Getting Action ID

I've found a way which is easier to get the action id of the components.
Simply assigning a variable to $_GET["a"] in the controller file within core/yourcomponentname/controllername shall do.

As all action which requires the component to work will require the action id to pass in, therefore, the initial file to run will be the controller file.

No comments: