slipperyfish Posted July 14, 2006 Share Posted July 14, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/14602-tpl-and-other-template-files/ Share on other sites More sharing options...
Oldiesmann Posted July 14, 2006 Share Posted July 14, 2006 That's part of the Smarty Template Engine. Check out http://smarty.php.net for more info. Quote Link to comment https://forums.phpfreaks.com/topic/14602-tpl-and-other-template-files/#findComment-58037 Share on other sites More sharing options...
slipperyfish Posted July 14, 2006 Author Share Posted July 14, 2006 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.... Quote Link to comment https://forums.phpfreaks.com/topic/14602-tpl-and-other-template-files/#findComment-58038 Share on other sites More sharing options...
Oldiesmann Posted July 14, 2006 Share Posted July 14, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/14602-tpl-and-other-template-files/#findComment-58049 Share on other sites More sharing options...
slipperyfish Posted July 14, 2006 Author Share Posted July 14, 2006 ahhhh! thankyou very much :) Quote Link to comment https://forums.phpfreaks.com/topic/14602-tpl-and-other-template-files/#findComment-58054 Share on other sites More sharing options...
Buyocat Posted July 14, 2006 Share Posted July 14, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/14602-tpl-and-other-template-files/#findComment-58055 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.