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';?>
How to separate content from design with smarty?
Moderator: General Moderators
- waytoecommerce
- Forum Newbie
- Posts: 16
- Joined: Tue Apr 12, 2011 11:47 am
Re: How to separate content from design with smarty?
to include php in smarty you have to use {php} include('text.php'); {/php}
thanks!
waytoecommerce.com
thanks!
waytoecommerce.com
Re: How to separate content from design with smarty?
What is correct way to edit content in Smarty which is separate file from other form (design, sections, content)
- waytoecommerce
- Forum Newbie
- Posts: 16
- Joined: Tue Apr 12, 2011 11:47 am
Re: How to separate content from design with smarty?
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.
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?
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?
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?
- waytoecommerce
- Forum Newbie
- Posts: 16
- Joined: Tue Apr 12, 2011 11:47 am
Re: How to separate content from design with smarty?
yes it's a sample if you give me access then i can be able to solve your problem ....thanks!