SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot
    Join Date
    Mar 2012
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Smarty vs. Wordpress

    Hi all,

    Given the choice, which of the two would you use as a framework: Smarty or Wordpress?

    As for me, I am currently working with a site that was made using Smarty, but it just seems so lacking compared to Wordpress.

    In Wordpress, I can just make an entirely new custom page in PHP with my own form or some page that is calling the database, and just upload that single PHP file and use it as a template. From what I've observed thus far in Smarty, this seems much more complicated in Smarty.

    Besides that, Wordpress is MUCH MORE efficient for SEO.

    Last but not least, it really seems to me like Smarty just complicates things. For anyone working on the site after me, if Smarty is used, they'll have to take time to familiarize themselves with Smarty. However, if Wordpress is used, as far as I can tell, this is just pure PHP without any added gibberish.

    Anyway, these are how I see it, but I may be wrong. If I am wrong, please correct me.

    Thanks!

    - Pam

  2. #2
    SitePoint Zealot
    Join Date
    Mar 2012
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just found this on the Smarty site:

    Smarty is not an application development framework. Smarty is not an MVC. Smarty is not an alternative to Zend Framework, CodeIgniter, CakePHP, or any of the other application development frameworks for PHP.

    Smarty is a template engine, and works as the (V)iew component of your application. Smarty can easily be coupled to any of the engines listed above as the view component. No different than any other software, Smarty has a learning curve. Smarty does not guarantee good application design or proper separation of presentation, this still needs to be addressed by a competent developer and web designer.
    http://www.smarty.net/about_smarty

    Does this mean that Smarty is also not to be used instead of Wordpress?

  3. #3
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,633
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Yes. Smarty is a template language written in another template language (PHP). It is pretty nifty but definitely not a full-blown blogging engine with aspirations on becoming a CMS like wordpress has grown to be.

  4. #4
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,820
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    If WordPress were a car then Smarty is a car engine that could be placed inside many different cars. That makes Smarty far more flexible - provided that you know how to construct the rest of the "car" around it. Wordpress on the other hand is much easier to use because it already contains everything you need - provided that you want to work the WordPress way.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  5. #5
    SitePoint Zealot
    Join Date
    Mar 2012
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by wwb_99 View Post
    Yes. Smarty is a template language written in another template language (PHP). It is pretty nifty but definitely not a full-blown blogging engine with aspirations on becoming a CMS like wordpress has grown to be.
    Quote Originally Posted by felgall View Post
    If WordPress were a car then Smarty is a car engine that could be placed inside many different cars. That makes Smarty far more flexible - provided that you know how to construct the rest of the "car" around it. Wordpress on the other hand is much easier to use because it already contains everything you need - provided that you want to work the WordPress way.
    Thanks guys! I thought that maybe I might be wrong, but it turns out not to be the case.

    Thanks again!


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •