Results 1 to 5 of 5

Thread: Smarty Template Engine

  1. #1
    4x4
    Join Date
    Oct 2004
    Posts
    1,043

    Smarty Template Engine

    Does anyone use the Smarty template engine by php.net ?

    http://smarty.php.net/

    It looks VERY powerful.

  2. #2
    Administrator Chris's Avatar
    Join Date
    Feb 2003
    Location
    East Lansing, MI USA
    Posts
    7,055
    I always thought it looked too complicated. Meaning it didn't simplify things enough, you're better off using a CMS (custom or not) or just nothing at all.

    I suppose perhaps in a large single website project with multiple programmers and designers it might have it's place.
    Chris Beasley - My Guide to Building a Successful Website[size=1]
    Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives

  3. #3
    4x4
    Join Date
    Oct 2004
    Posts
    1,043
    It looks like "CMS Made Simple" mentioned in the other post uses the smarty class...

    I agree it does look very complex and for something simple Codewalker has a nice/simple Template system.

  4. #4
    Senior Member chromate's Avatar
    Join Date
    Aug 2003
    Location
    UK
    Posts
    2,348
    The debate over smarty has been raging for ages. The real advantage of using a template engine such as this is in creating a layered application. Meaning the graphical design of a site is separate from the business logic, which is separate from the concerns of storing the data in a database.

    This in theory means you can have designers working on how the application's interface looks without worrying about the code behind it. But in practice, the designers still need to know how to handle stuff like recurrence for creating lists etc. So instead of learning simple PHP, they have to learn smarty based code instead. This is where the arguments about its usefulness come into play. It's also argued that smarty can be quite a bloated implementation for simple applications, which however still may require this layered separation of concerns.

    I haven't used smarty myself as it always seemed OTT for my needs. But if you're creating a large application with many team members working on it, it's an option.

  5. #5
    Registered
    Join Date
    Apr 2004
    Posts
    14
    We recently starting using smarty in our software. So far it has been a good decision and makes it easier for novices to modify their site layouts. I would prefer not to use it but it does save us on technical support issues.

Similar Threads

  1. Review: Template Monster Affiliate Program
    By Chris in forum Affiliate Networks and Affiliate Programs
    Replies: 8
    Last Post: 06-07-2011, 11:39 PM
  2. Replies: 5
    Last Post: 01-09-2004, 12:44 PM
  3. My Own Search Engine
    By incka in forum User Owned Websites
    Replies: 12
    Last Post: 11-10-2003, 12:26 AM
  4. My Template Site
    By Mike in forum User Owned Websites
    Replies: 12
    Last Post: 10-04-2003, 09:44 AM

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
  •