| | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
The Yaf_Controller_Abstract class(バージョン情報なし。おそらく SVN 版にしか存在しないでしょう) 導入Yaf_Controller_Abstract is the heart of Yaf's system. MVC stands for Model-View-Controller and is a design pattern targeted at separating application logic from display logic. Every custom controller shall inherit Yaf_Controller_Abstract. You will find that you can not define __construct function for your custom controller, thus, Yaf_Controller_Abstract provides a magic method: Yaf_Controller_Abstract::init(). If you have defined a init() method in your custom controller, it will be called as long as the controller was instantiated. Action may have arguments, when a request coming, if there are the same name variable in the request parameters(see Yaf_Request_Abstract::getParam()) after routed, Yaf will pass them to the action method(see Yaf_Action_Abstract::execute()). クラス概要
abstract
Yaf_Controller_Abstract
{
/* プロパティ */
public
$actions
;
protected
$_module
;
protected
$_name
;
protected
$_request
;
protected
$_response
;
protected
$_invoke_args
;
protected
$_view
;
/* メソッド */
final public void forward
( string
}$module
[, string $controller
[, string $action
[, array $paramters
]]] )プロパティ
目次
|
|
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「The Yaf_Controller_Abstract class」をGoogle検索
|