That looks nice, but how do I get to the point where I can understand
how to use it?
I have also looked at the Smarty site <http://www.smarty.net/>, but
their documents assume significant experience in building and using
templates.
Where can I find guidance or tutorials on how to do all of this,
starting with only a rudimentary knowledge of HTML and PHP. It would be
best if they also focused on procedural rather than object oriented
code.
Bob McConnell
-----Original Message-----
From: Virgilio Quilario [mailto:virgilio.quilario@xxxxxxxxx]
Sent: Wednesday, March 18, 2009 10:36 AM
To: php-general@xxxxxxxxxxxxx
Subject: Smarty Tips and Techniques
Hi list,
Just wanna share my collection of Smarty scripting tips and techniques.
Smarty is a template engine for PHP that you can use to separate data
and logic from web design.
This way programmers can work on the php scripts and designers can
work on the templates for the same web site.
Here is the link:
http://www.jampmark.com/php-programming/16-very-useful-smarty-scripting-
tips-and-techniques-to-make-templates-smarter.html
Hope you find it useful.
Virgil
I have stared using smarty myself in a recent project I am still making
and I'll have to say that it has its virtues.
Look at a simple example in the smarty's site and use the manual for any
questions. You will probably find some stuff by googling.
The templates (simply put) are actually html-like that has some php
variables inside you may assign before displaying the actual template.
This way you customize the template to output what you need.
Above that you may start using the statements to automatically build
forms, tables etc
I like the fact that there is a cache and that the templates get
"compiled" which make them faster to process.
Nevertheless you need time to get familiar with the smarty way of
thinking as with all frameworks and template engines you need to use.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php