09-04-2009, 06:54 PM
would like to use Smarty Templates or Zend Framework?
Some suggestion post like:benefits value that Smarty Templates has the potential to bring to the table ...
09-04-2009, 09:23 PM
Ehhh... they're not really accomplishing the same thing. You could use both if you'd like.
09-04-2009, 09:42 PM
I've worked extensively with smarty, no so much with Zend, but the Zend framework seems more of an MVC (Model-View-Controller) framework, where Smarty is used to separate PHP from template files. Some feel Smarty is an overkill, the only real upside I see with smarty is that if you're not a designer, and you hire one who only knows xHTML, CSS, and other client side languages, but not Server Side PHP, then he wont screw up your code syntax. So smarty makes it less confusing.
PHP was made really to be a language that can jump in and out of HTML at will, so I don't see it as necessary to have it. Some big scripts use Smarty or Smarty-Like templates just because they mass sell these scripts and it'll cause less confusion for the Copy-Paste, WYSIWYG, Know-Nothing-But-Wants-To-Run-A-Major-Website-With-No-Real-Learning-Or-Web-Knowledge-Whatsoever, kinda person.
But I think MVC is a good tool, whether it's from an advanced framework, or a simple custom made one. Modular design is the 2.0 way, it takes longer to implement but easier to upgrade or fix bugs. So I strongly recommend MVC, or frameworks like MVC, I feel it's much better practice when making full fledged scripts.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.