Re: smarty
| From: | John Nichel | Date: | Thu, 08 Apr 2004 14:12:34 +0000 |
| Subject: | Re: smarty | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-182824@lists.php.net to get a copy of this message | ||
John W. Holmes wrote:
From: "Kelly Hallman" <khallman@ultrafancy.com>This is the issue I have with things like Smarty. No matter if I use PHP or Smarty, I have to 'teach' my designer how to 'code' in some aspect...and I've met quite a few designers who can't grasp JavaScript, much less Smarty or PHP. Personally, I have the designers give me a HTML layout of the page to where I can cut up the HTML, and throw it into include files. -- *********************************************************************** * _ __ __ __ _ * John Nichel * * | |/ /___ __ \ \ / /__ _ _| |__ ___ __ ___ _ __ * 716.856.9675 * * | ' </ -_) _` \ \/\/ / _ \ '_| / /(_-<_/ _/ _ \ ' \ * 737 Main St. * * |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150 * * |___/ * Buffalo, NY * * http://www.KegWorks.com john@KegWorks.com * 14203 - 1321 * ***********************************************************************Sure, they could. However, take a look at all the newbie questions on this list. Maybe you've got time for all that hand holding.. but Smarty is a lot closer to HTML, which many of them already know.{$variable} is no more closer to HTML than <?=$variable?>. Either way you still have to teach them the templating engine langauge. That language can either be Smarty or a specific subset of PHP functions/methods that serves as your templating engine (like how Justin had to write the "cycle()" function). If you can teach them how a {section} works, then you can teach them how a foreach() works or write a section() function that works just the same.