How to use this code?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Kitara
Forum Newbie
Posts: 5
Joined: Fri Nov 20, 2009 12:34 am

How to use this code?

Post 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!
User avatar
Weiry
Forum Contributor
Posts: 323
Joined: Wed Sep 09, 2009 5:55 am
Location: Australia

Re: How to use this code?

Post 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.
Kitara
Forum Newbie
Posts: 5
Joined: Fri Nov 20, 2009 12:34 am

Re: How to use this code?

Post by Kitara »

Thank you! That is correct! By using function and template file include replace words, we can do that. More in this link:
Post Reply