Page 1 of 1
How to separate content from design with smarty?
Posted: Sat Apr 02, 2011 10:09 am
by toplisek
I have tested Smarty folder structure. How to set correct text within tpl?
Should be include file with content on the left hand side of website
like:
1. {include file="text_area.tpl"} or
I set
2. <?PHP @require_once dirname(__FILE__).'/smarty/templates/text_area.php';?>
Re: How to separate content from design with smarty?
Posted: Wed Apr 13, 2011 12:35 am
by waytoecommerce
to include php in smarty you have to use {php} include('text.php'); {/php}
thanks!
waytoecommerce.com
Re: How to separate content from design with smarty?
Posted: Wed Apr 13, 2011 2:05 am
by toplisek
What is correct way to edit content in Smarty which is separate file from other form (design, sections, content)
Re: How to separate content from design with smarty?
Posted: Wed Apr 13, 2011 10:54 am
by waytoecommerce
if you want to edit content in smarty you can use {* comment *}.
also please clear out your problem .... so, that i can explain it to you in details.
Re: How to separate content from design with smarty?
Posted: Wed Apr 13, 2011 2:15 pm
by toplisek
Sorry not to be clear.
We have at website the following:
CSS, text, PHP code (applicaton).
I like to give user access to just text content. I think with included file will be solved. How to solve this with cooment in correct way. Is this just as your sample?
Re: How to separate content from design with smarty?
Posted: Fri Apr 15, 2011 12:52 am
by waytoecommerce
yes it's a sample if you give me access then i can be able to solve your problem ....thanks!