Welcome Guest, Not a member yet? Register   Sign In
Where do you put the content of the site?
#8

[eluser]esra[/eluser]
Aside from storing code in a database or hard coding content in views, you can also load content stored in your language files. You can load any number of language files from a controller and embed the language strings or a variable representing a string in your views. For longer content, you can break language strings into paragraphs using <br /> pairs. Language strings can also be formatted using HTML elements or styles.

You can do a lot of other things with language files that might not immediately be immediately apparent like storing the paths to selected files, defining page titles, module names, form-specific language strings for select lists, etc. At the same time, you promote internationalization for your application.


Messages In This Thread
Where do you put the content of the site? - by El Forum - 12-13-2007, 02:27 PM
Where do you put the content of the site? - by El Forum - 12-13-2007, 02:43 PM
Where do you put the content of the site? - by El Forum - 12-13-2007, 03:07 PM
Where do you put the content of the site? - by El Forum - 12-13-2007, 03:26 PM
Where do you put the content of the site? - by El Forum - 12-13-2007, 03:33 PM
Where do you put the content of the site? - by El Forum - 12-13-2007, 03:48 PM
Where do you put the content of the site? - by El Forum - 12-13-2007, 03:58 PM
Where do you put the content of the site? - by El Forum - 12-13-2007, 08:01 PM
Where do you put the content of the site? - by El Forum - 12-14-2007, 02:09 AM
Where do you put the content of the site? - by El Forum - 12-14-2007, 09:38 AM
Where do you put the content of the site? - by El Forum - 12-14-2007, 06:27 PM
Where do you put the content of the site? - by El Forum - 12-25-2007, 10:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB