Welcome, Guest. Please login or register.

Login with username, password and session length
Pages: [1]   Go Down
Print
Topic: What is SMARTY and how do You Use them ?  (Read 1098 times)
« on: July 29, 2008, 07:42:30 PM »
Ft24 Offline
Newbie

View Profile
*
Posts: 8



Im i guess what you would call a code monkey, i know bits of HTML and PHP, i know what varibles, arrays, functions, and those if/else statesments are. But what is this thing ive been hearing of called Smarty, and how do you use them ?
Logged

 
« Reply #1 on: August 24, 2008, 01:02:00 PM »
Webbie Offline
Newbie

View Profile
*
Posts: 9



http://en.wikipedia.org/wiki/Smarty

It is a programming tool for webprogrammers. check out the wiki.
Logged
« Reply #2 on: November 30, 2008, 06:20:13 PM »
Primate Offline
Newbie

View Profile
*
Posts: 14



Well, it's not a programming tool per se. It's a templating system that separates business logic from presentation logic. For example, you could have a file called "index.php," where you define a bunch of variables. Then, you call a smarty template, which prints out the variables in tables and with pretty colors.

Smarty syntax is much simpler than PHP's syntax. Therefore, a designer can work on the presentation logic, while a programmer works on the business logic. It's a great tool, so if you're interested, check out smarty.net!
Logged
 
Pages: [1]   Go Up
Print
Jump to: