Page 1 of 1

How to use this code?

Posted: Fri Nov 20, 2009 12:41 am
by Kitara
Please check this code:
<h1>{SITENAME}</h1>
<p>{SITE_DESCRIPTION}</p>
<p style="display: none;"><a href="#start_here">{L_SKIP}</a></p>
It is used in html code. This quote {} used for connect php code. If you know how to use pls tell me. What is that code and how to use. Thank alot!

Re: How to use this code?

Posted: Fri Nov 20, 2009 2:15 am
by Weiry
If im reading that correctly, that is from a template html file which gets included by a php template class. The variables are define in the php page prior to loading of the template.

How to make a simple HTML template engine in PHP
This link gives a basic understanding of what is going on.

Re: How to use this code?

Posted: Fri Nov 20, 2009 2:54 am
by Kitara
Thank you! That is correct! By using function and template file include replace words, we can do that. More in this link: