I need to create a file to contain all string in my website and I want to use Cakephp to reference strings in that file like string.h in android. Please help me.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you need this for translation purposes you should get a look on cake localization support. You create the string files for languages on the ‘locale’ folder and use
__("string")instead of"string"so cake will look for the translation of “string” in the folder correspondent to the current language.Doc in cakephp 1.3
Doc in cakephp 2.0
It is the closest of what you asked on cake, if that isn’t what you have in mind you will probably have to write it from scratch,