2006年04月
Inspired by this article I started to play around a bit to integrate the Smarty template engine into the Zend Framework. My ambition was to minimize the required code in the controller actions but stay close to the given Zend_View API. I also wanted to integrate the Smarty caching feature. Here is the code I came up with.阅读全文>
发表于 @ 2006年04月18日 19:09:00|评论(loading...)|编辑
zend framework(http://framework.zend.com/)是由zend开发的一个MVC框架阅读全文>
发表于 @ 2006年04月18日 18:37:00|评论(loading...)|编辑
Here is a follow-up to the first part of the little tutorial Integrating Smarty with the Zend Framework. I want to address some of the issues in the comments of the first part and add some further information on how to setup your application to use the Travello_View_Smarty class. Along the way you learn how to integrate classes of the ezComponents.阅读全文>
发表于 @ 2006年04月18日 17:52:00|评论(loading...)|编辑
To put this all together, create Database.php in the lib directory, and loadClass() will be able to find it. Your index.php file should now instantiate $view and $db and store them in the registry.阅读全文>
发表于 @ 2006年04月18日 17:46:00|评论(loading...)|编辑
Because the database components of the Zend Framework are still relatively unstable, and because I want this demo to be easy to work with, I use a simple class that uses SQLite for storing and retrieving news entries and comments阅读全文>
发表于 @ 2006年04月18日 17:43:00|评论(loading...)|编辑
The last component this tutorial covers is Zend_InputFilter. This class provides a simple but rigid approach to input filtering. 阅读全文>
发表于 @ 2006年04月18日 17:41:00|评论(loading...)|编辑
Zend_View is a class that helps you organize your view logic. It is template-system agnostic, and for the sake of simplicity, I don't use a template system in this tutorial. 阅读全文>
发表于 @ 2006年04月18日 17:39:00|评论(loading...)|编辑
Using the controller is pretty intuitive. In fact, I'm writing this tutorial without the luxury of documentation!
Note: Documentation is now available at http://framework.zend.com/manual/zend.controller.html.
阅读全文>
发表于 @ 2006年04月18日 17:36:00|评论(loading...)|编辑
We asked PHP security expert — and contributor to the newly-released Zend Framework — Chris Shiflett to write an article for us on the ZF's major features, and he came through with style!
This complete, step-by-step tutorial provides an exclusive first look at building a practical application with the framework by showing you how to write a simple news management system. 阅读全文>
发表于 @ 2006年04月18日 17:34:00|评论(loading...)|编辑