Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Templates of Actions of Conrollers not working in SIlverstripe


Go to End


456 Views

Avatar
Newbie

Community Member, 4 Posts

26 March 2016 at 6:46am

I followed exactly what the documentation said: Controllers are automatically rendered with a template that makes their name. Our TeamsController would be rendered with a TeamsController.ss template. Individual actions are rendered in TeamsController_{actionname}.ss. templates/TeamsController.ss works but the ones for actions does not, for example one allowed action is someaction so I created a templates/TeamsController_someaction but is not outputting at all all I get is a blank. Can somebody explain please?