RE: [SMARTY-DEV] smarty vs php includes
| From: | jmartinez at controlaircorp dot com | Date: | Tue, 05 Apr 2005 18:34:58 +0000 |
| Subject: | RE: [SMARTY-DEV] smarty vs php includes | ||
| Groups: | php.smarty.dev | ||
| Request: | Send a blank email to php-smarty-dev+get-2685@lists.php.net to get a copy of this message | ||
Your two guys seem to be afraid of something new and that's understandable. Your HTML guy
should be excited to use the easier templating (unless he doesn't like to touch the code and is
one of those GUI kids.) Is your programmer a linear guy or does he use OOP? If he is linear it makes
sense that he doesn't want to learn, that's a big step. If he's already doing OOP
then I don't know what to say.
You might want to mention the speed increase because of Smarty's pre-processing compilation vs.
the include, include, include overhead...
-----Original Message-----
From: David Ngo [mailto:dngo@getlisa.com]
Sent: Tuesday, April 05, 2005 8:45 AM
To: smarty-dev@lists.php.net
Subject: [SMARTY-DEV] smarty vs php includes
At my work I work with a html designer and one other programmer. Both of
them refuse to learn to use Smarty and keep arguing that we should do
away with it. My boss's take on it is that Smarty adds complexity with
little benefit. Their solution is to just do away with the templates and
instead have php include files with html in them that will act as the
templates. We also have a proposed solution using xml that can replace
the caching options that Smarty has built in. I have to come up with a
few examples where using Smarty is a better solution. Does anyone have
any extremely convincing examples I can use to change these people's
minds? All of the examples I have seen on the Smarty site and through
google are very simplistic examples that could easily be replaced by php
includes. I do not want to move away from Smarty because I feel it makes
my code better structured, easy to read, and just forces me to have
better coding habits. However how do I explain to someone that has never
used Smarty and refuses to learn it that it is the way to go? I fear
that if I can't come up with some good examples we will switch to the
system of using php includes as templates which I do not like at all.
--
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php