Let me add my never-humble opinion. Probably the best way to address it is by their "right for me" page:
http://www.smarty.net/rightforme.php
Caching
Caching is good. Caching also isn't that hard to do if you have a clue what you're doing when you're programming in PHP. AND, writing your own caching will reduce the overhead required by an entire framework.
Configuration Files
If you're building programs without these files, please go to Add/Remove programs and remove your programming tools. If you think a framework is necessary to do this, then please uninstall your tools too!
Security
Nice way of them commenting about
your security. Now, go to their homepage and read about
their security holes! Changing your own ability to fix security flaws out with having to wait on someone else is just foolish. Learn PHP well and the techniques and technologies necessary to code an application and your stuff will be much more secure -- while remaining under your control, so that you can fix anything you discover post de facto.
Easy To Use And Maintain
Really? You mean that if I know MVC and have it coded in PHP that learning a whole new framework's syntax is easy? I must be stoned b/c I believe it...oh wait, I'm not and I don't.
Variable Modifiers
I don't know what the hell they're talking about here, but if modifying a variable is considered hard, please repeat the uninstallation steps provided above.
Template Functions
PHP does a good job of this. Wrapper functions aren't necessary and functions necessarily create more overhead than just doing it yourself.
Filters
In PHP, these are called conditional expressions. Elementary, my dear Watson.
Resources
I had to pick myself up off the floor after reading this. Are you flipping kidding me? I have to create a resource handler to include a file? Now, you tell me, which do you think is easier?
Plugins
So, you're telling me this all-in-one framework is in pieces? Let me guess, they're all more secure than PHP itself? **** it, where's a bowl. I really need to be baked to believe this!
Add-Ons
Yeah, yeah. Add ons for Smarty only. Try finding PHP code for each of these and you'll realize that trying to find an addon for a framework is much harder to find than PHP code. Better yet, try getting help for a framework versus trying to get help for a framework.
Debugging
Ever heard of xdebug?
Compiling
Oh. Well, thank you very much. You "compile" my framework based code into PHP. How nice! I mean, I really didn't want to write PHP in PHP. I was hoping to use Vulcan. Can you "compile" that too? lol.
Performance
Oh, so given the fact that plugins and addons must be hunted down and included on-demand and that it has to search through files and convert them over to PHP which I could have coded myself -- given all that -- it does "extremely well". Sure. I'll believe that subjective analysis. lol.
Now, to answer an important question asked here:
Quote:
Originally Posted by mtishetsky
The holy war restarts.
What is the real difference between and
PHP Code:
<?= $somestuff ?>
?
|
The first requires 1) learning a new syntax (OK, not really as that's just PHP code without the echo), 2) a pre-parser engine to go through and do it right, and 3) that Smarty exists at least as long as PHP (a bet I'm not willing to take).
So what does "do it right" mean? Alas,
PHP Code:
<?php echo $somestuff; ?>
Sorry, mti, but I can't just go with your second example because short tags aren't guaranteed to be on.
So, in short, if you're not a PHP smarty, then you'll need Smarty for PHP.