• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Text blocks

#1
[eluser]weetstraw[/eluser]
What are some suggestions on handling a paragraph or text block when it doesn't make sense to create a view file for it and it seems excessive to store it in a database?

I don't want it in my controller. Any thoughts?

#2
[eluser]Johan André[/eluser]
Code:
print "<p>Your text goes here</p>";

Preferably you put in yor controller, but if you don't want it in your controller or view then the model is the last resort. Smile

#3
[eluser]Dam1an[/eluser]
Another option would be to perhaps store it in a language file?

#4
[eluser]weetstraw[/eluser]
I was thinking of creating an includes folder and just storing the paragraphs there or as suggested, a language file using the DEFINE function.

#5
[eluser]Johan André[/eluser]
Haha! Silly me... Now I actually understand what you asked for! Smile


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.