Prev | Current Page 545 | Next

W. Jason Gilmore

"Beginning PHP and MySQL: From Novice to Professional"

Like programming languages, once you??™ve learned one, you??™ll
generally have an easier time becoming proficient with another. Therefore, even if you??™ve
decided that Smarty isn??™t for you, you??™re still invited to follow along. The concepts you
learn in this chapter will almost certainly apply to any other similar solution. Furthermore,
the intention isn??™t to parrot the contents of Smarty??™s extensive manual, but rather
to highlight Smarty??™s key features, providing you with a jump-start of sorts regarding the
solution, all the while keying in on general templating concepts.
Installing Smarty
Installing Smarty is a rather simple affair. To start, go to http://smarty.php.net/ and
download the latest stable release. Then follow these instructions to get started using
Smarty:
1. Untar and unarchive Smarty to some location outside of your Web document
root. Ideally, this location would be the same place where you??™ve placed other
PHP libraries for subsequent inclusion into a particular application. For example,
on Unix this location might be the following:
/usr/local/lib/php/includes/smarty/
On Windows, this location might be the following:
C:\php\includes\smarty\
2. Because you??™ll need to include the Smarty class library into your application,
make sure that this location is available to PHP via the include_path configuration
directive. Namely, this class file is Smarty.


Pages:
533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557