I want change template file type.
Is possible to do change file tipe?
ex)
filename.ss ->filename.php
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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.
I want change template file type.
Is possible to do change file tipe?
ex)
filename.ss ->filename.php
I don't think so, at least not without some heavy customization of how Sapphire processes templates.
Are you looking for a PHP-based templating engine?
Thank you for the response.
I used cakePHP and cake allows to change template file type from filename.ctp -> filename.whatever-extension
so I thought it's possible to do it with SS.
I just prefer to use something.php file type.
I haven't used any different templating engines with SS, but maybe somebody else here has.
Otherwise, I'd probably say you have to hack the core a little bit to get it to accept .php templates. IMO, not worth the trouble.