| |
|
|
|
|
| |
Projects
Lately (early 2008) I've been really getting into Zend Framework. I think it's OO PHP at its best. I'm loving the preview release of version 1.5 most of all. I spent a while getting the latest version to work with the Smarty template engine, and thought I'd share.
There are some great tutorials out there, but getting set up with Smarty means pulling information together from a couple places. (Most credit goes to Rob Allen and the author of the Zend_View_Smarty class. Blame for any new bugs is all mine, of course.)
This tarball has a skeleton project with (I think) everything you need to start playing. There's a README with instructions and download URLs for Zend Framework and Smarty. It assumes you're running Apache with MySQL (although swapping for Postgres would be dead simple) and includes a simple example of the lovely Zend_Db_Table class.
Files in the tarball:

(note: there are also four crucial .htaccess files in the tarball, not shown in the screencap above)
If you'd rather try Smarty with the code created by Rob Allen in his excellent tutorial, you can download this tarball. It has a readme with changes to make, and Smarty *.tpl versions of the .phtml files. It does not include the code from akrabat.com. Rather, it works with that code — as of Feb 2008, anyhow.
Like it? Hate it? Email me at zendproj -at- lizwarner -dot- com.
|
|