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.

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

Text strings, constants. Best practice?

Go to End



Community Member, 9 Posts

30 June 2009 at 10:34pm

Edited: 30/06/2009 11:00pm


As a pretty new Silverstripe developer i wonder how to handle constant text strings in templates? It could be strings such as "Sign up", "Author", "By" and similar strings used in the application. I have previously used Zend Framework a lot and have then i used Zend_Translate for this purpose.

Are there any similar way to handle text strings in Silverstripe, preferably in language files?

Edit: Spelling