Reputation: 1414
AccountPage_Controller under core_shop module has defined some actions under /account url.
I want to add a new action under /account, how can i do it?
Upvotes: 1
Views: 148
Reputation: 1746
You haven't said which version of SilverStripe framework or cms you're using. Assuming v3 or above and depending on your scenario, using custom Extension
subclasses known as "Decorators" is prob the best way to go.
AccountPage_Controller
by creating your own custom controller with the desired custom action and $allowed_actions
staticextensions
block in your config.yml
Upvotes: 4