brackets in php templates

Posted by Othman on Programmers See other posts from Programmers or by Othman
Published on 2012-12-17T00:07:05Z Indexed on 2012/12/17 5:13 UTC
Read the original article Hit count: 243

Filed under:

I have a script, and now it's the perfect time to have an option to change theme templates.

I was looking forward to store these files in php files, or html files. with CSS file. I looked over some codes and I found that they use brackets to refer to the variable.

Here's an example of a template block:

<div class='block_div'>
<center>{title}</center>
{content}
</div>

I know that I can use PHP vars usering <?=$var;?>. However, I think the one above is better, and I looked over the web to find anything about it but I couldn't.

My Question is how I can use these brackets in my php or html code. to let the user changing the template only not the code!

© Programmers or respective owner

Related posts about php