Current time: 05-16-2024, 03:32 PM Hello There, Guest! (LoginRegister)


Post Reply 
Convert pTemplates into Smarty Templates
Author Message
zpin Offline
Junior Member
*****
Dev Team

Posts: 160
Joined: Sep 2007
Reputation: 1
Post: #40
RE: Convert pTemplates into Smarty Templates
Generally, I agree with you. I've never had much trouble on the debugging front with Smarty but the more complex the template "language" becomes the less it's justified over simply using PHP.
The advantages I see: simpler syntax ({$X} instead of <?php echo $X ?>) and (still) restricted functionality.
In this case I took Smarty because it's syntax resembles the current pTemplate syntax and the changes in the .php files were minimal. It was the most efficient way to improve the templating situation.
Also in our case the goal is to not even get into these debugging problems by keeping the use simple. Actually, this should always be the goal. If your templates get too complex you might be doing it wrong.
11-03-2010 09:03 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Templates - Obi_Wan - 09-23-2010, 07:37 PM
RE: Templates - Nuxwin - 09-24-2010, 10:20 PM
RE: Templates - Zothos - 09-23-2010, 08:52 PM
RE: Templates - zpin - 09-23-2010, 09:01 PM
RE: Templates - Obi_Wan - 09-23-2010, 10:08 PM
RE: Templates - Obi_Wan - 09-24-2010, 10:26 PM
RE: Templates - zpin - 09-25-2010, 12:08 AM
RE: Templates - Obi_Wan - 09-25-2010, 06:44 PM
RE: Templates - zpin - 09-27-2010, 10:55 PM
RE: Convert pTemplates into Smarty Templates - Nuxwin - 10-01-2010, 12:22 AM
RE: Convert pTemplates into Smarty Templates - Nuxwin - 10-20-2010, 09:59 PM
RE: Convert pTemplates into Smarty Templates - zpin - 11-03-2010 09:03 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)