Monday, March 19, 2007

Zend Framework Beta 0.9.0 Released on March 17, 2007

Zend Framework Beta 0.9.0が正式リリースされました。

主な変更点は以下の通り、

Components moved from incubator to core:

* Zend_Translate for localizing application messages.
* Zend_Auth database adapter.
* Zend_Db_Adapter using the native Mysqli extension.

Improved features and design:

* MVC support for output buffering and view integration.
* Zend_Db_Table relationships.
* Zend_Feed class for building RSS/Atom feeds.
* Zend_Mail features for handling messages in folders.
* Zend_Search_Lucene performance improvements, matching Java Lucene.
* Zend_Service_Audioscrobbler, Zend_Service_Delicious,
Zend_Service_Simpy web service clients.
* Zend_Validate: improvements to validators for email address
and hostnames.

0.9は単なるバグ修正って言ってたのに随分変わっている。
Alex@Netによると、
View周りがかなり変更されたといっている。

Action now is integrated with View so the following code:

class Module_IndexController extends Zend_Controller_Action {
function indexAction() {
$view = new Zend_View();
$view->addScriptPath(dirname(__FILE__) . '/../views');
$view->addHelperPath(dirname(__FILE__) . '/../helpers');
$view->addFilterPath(dirname(__FILE__) . '/../filters');
$view->data = ...;
$this->getResponse()->setBody($view->render('index.php'));
}
}

may be replaced with something like this:

class Module_IndexController extends Zend_Controller_Action {
function indexAction() {
$view = $this->initView();
$view->data = ...;
$this->render();
}
}

0.8とは随分変わってしまわれたものだ。

Labels:

0 Comments:

Post a Comment

<< Home