Zend Framework 0.7.0 has been released.
January 19, 2007 on 12:09 am | In Zend Framework |I have done the test, my demo works with the new version without any problem.
By the way, I’d like introduce my thought about controller. A couple of weeks ago, I separated form operations from the action controller. a couple of reasons as below:
- A lot of actions do the similar thing, like add, register, something behind the scene is inserting one record into the table of database. Using one form action to do the similar job, formInsert() for example, will make this part of code re-usable.
- Making action controller programming as easy as possibe. As we can predict, Zend_form, Zend_Validate etc will come soon, I will put all of them into form action controller. In action controller there will only two statements like these:
Code (php)
-
function addAction()
-
{
-
$this->_forward(‘form’,‘formactionname’,$params);
-
}
-
then in the future, in action controllers, I only need to construct one big arrary which will carry parameters for creating the form, then call the related form action. That’s it!
No Comments yet »
RSS feed for comments on this post. TrackBack URI
Leave a comment
Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds.
Valid XHTML and CSS. ^Top^