phpeveryday.com

The best tutorial of php, php framework, php strategies, object oriented oriented,


Smarty Template: Introduction

Tag: smarty, template   Category: PHP Classes
post: 02 May 2008 read: 316


Smarty Template Step By Step Tutorial - Part 1: Nowadays, programming world is more than complex than before. And need more team to build a product, not only programmer. We need analyst, graphic designer, content editor, and so on. And what we will talk is way of separating programming and art job. Absolutely, We can implement in web programming with PHP. Smarty is one of solution!

Smarty, a PHP templating system. Smarty allows designer and programmers to interoperate more effectively and not worry about each other's work. The designer builds the template for the web page layout. They extract data from php file that the programmer create.

Many programmer hate design. They feel wasting time so much when must design one page. yeah, it will be unproductive job. They just want to write code and send data to template without having to generate HTML code or design layout.

Smarty makes happiness for designers and programmers. They do different task but can be collaborated effectively. See below:

The programmer's task:

  • Retrieve data from database.
  • Validate and manipulate data.
  • Change the data access methods and the business logic.

The Designer's task:

  • Create HTML without affecting the programmers PHP code.
  • Make change to design without asking PHP programmer.
  • Don't worry with data access and business logic.




| Give Your Opinion | Recommend
Share and Bookmark to: These icons link to social bookmarking sites where readers can share and discover new web pages.
digg del.icio.us technorati Ma.gnolia BlinkList

Recommended articles by other readers:
Web Services: How PHP Kiss VB.NET? (Part 1)
Chart: How to Build Cool Animation Real Time Chart
Joomla: Fast Road to Understand Component Programming
Email: Send Attachement Mail
mod_rewrite - Part 1: create your "fantasy" URL

What do You Think?
Your Name *:
Email *:
(Will not be published)
Website/URL:
Your Comment *:
* Required


615
posting