Jump to content

Archived

This topic is now archived and is closed to further replies.

slipperyfish

TPL and other Template Files

Recommended Posts

Hey everyone. Im wanting to create a website using ".tpl" files, and have variables like: "{HEADER}". However I'm not sure how to create this, I've looked around and I can't find anything that makes it simple, or gives a complete scirpt to be able to modify. So does anybody have some links, quick tips or snippets of code I could use?

-Thanks.

Share this post


Link to post
Share on other sites
That's part of the Smarty Template Engine. Check out http://smarty.php.net for more info.

Share this post


Link to post
Share on other sites
ahh, i've heard about SMART templates. It has a downlaods page, do i have to install anything into my PHP config, because I don't have access....

Share this post


Link to post
Share on other sites
You do have to download the smarty library, but you can put the smarty files in whatever directory you want, and you shouldn't have to modify your PHP config file as long as you tell your script where to find the smarty files (or smarty.class.php is in the same directory as the script). You can also use ini_set() to change the include_path if you want.

Share this post


Link to post
Share on other sites
Just follow their quick install guide.  The most you should need to do is change the permissions for two directories which you can do with a FTP program.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.