« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 9 of about 9 for getView (0.002 sec.)
Yaf_Controller_Abstract::getView — ビューエンジンを取得する | PHP 8.3 13714
Yaf_Controller_Abstract::getView (Yaf >=1.0.0) Yaf_Controller_Abstract::getView — ビューエンジンを取得する 説明 public function Yaf_Controller_Abstract::getView (): Yaf_View_Interface ビューエンジンを取得します。 パラメータ この関数にはパラ ...
https://man.mtool.work/php/8.3/yaf-controller-abstract.getview.html
Yaf_View_Simple::assignRef — The assignRef purpose | PHP 8.3 9796
Yaf_View_Simple::assignRef (Yaf >=1.0.0) Yaf_View_Simple::assignRef — The assignRef purpose 説明 public function Yaf_View_Simple::assignRef ( string $name , mixed &$value ): bool Yaf_View_Simple::assign() とは異なり、 このメソッドは参照で値 ... 例 <?php class IndexController extends Yaf_Controller_Abstract { public function indexAction () { $value = "bar" ; $this -> getView ()-> assign ( "foo" , $value ); /* Yaf 2.1.4 より前のバージョンにはバグがあり、 * この出力が "bar" になっていました */ $du ... mmy = $this -> getView ()-> render ( "index/index.phtml" ); echo $value ; // 自動レンダリングを無効にします Yaf_Dispatcher :: getInstance ()-> au ...
https://man.mtool.work/php/8.3/yaf-view-simple.assignref.html
Yaf_Controller_Abstract クラス | PHP 8.3 8646
Yaf_Controller_Abstract クラス (Yaf >=1.0.0) はじめに Yaf_Controller_Abstract は Yaf システムの中心となるクラスです。 MVC は Model-View-Controller の略で、 アプリケーションのロジックと表示のロジックを切り離すためのデザインパターンです。 すべ ... public function getRequest (): Yaf_Request_Abstract public function getResponse (): Yaf_Response_Abstract public function getView (): Yaf_View_Interface public function getViewpath (): string public function init (): void public function initView ( arr ... ブジェクトを取得する Yaf_Controller_Abstract::getResponse — 現在のレスポンスオブジェクトを取得する Yaf_Controller_Abstract::getView — ビューエンジンを取得する Yaf_Controller_Abstract::getViewpath — getViewpath の目的を書く Yaf_Controller_Abstract::init — ...
https://man.mtool.work/php/8.3/class.yaf-controller-abstract.html
Yaf_View_Simple::__set — 値をエンジンに設定する | PHP 8.3 8646
Yaf_View_Simple::__set (Yaf >=1.0.0) Yaf_View_Simple::__set — 値をエンジンに設定する 説明 public function Yaf_View_Simple::__set ( string $name , mixed $value ): void Yaf_View_Simple::assign() をもっと簡単にするもうひとつの方法です。 パラメ ... mple::__set() の例 <?php class IndexController extends Yaf_Controller_Abstract { public function indexAction () { $this -> getView ()-> foo = "bar" ; // assign("foo", "bar"); と同じ意味 } } ?> 参考 Yaf_View_Simple::assignRef() - The assignRef purpose Ya ...
https://man.mtool.work/php/8.3/yaf-view-simple.set.html
Yaf_View_Simple::clear — 代入した値をクリアする | PHP 8.3 8502
Yaf_View_Simple::clear (Yaf >=2.2.0) Yaf_View_Simple::clear — 代入した値をクリアする 説明 public function Yaf_View_Simple::clear ( string $name = ? ): bool 代入した値をクリアします。 パラメータ name 代入した変数名。 空の場合は、すべての変数 ... mple::clear() の例 <?php class IndexController extends Yaf_Controller_Abstract { public function indexAction () { $this -> getView ()-> clear ( "foo" )-> clear ( "bar" ); // "foo" と "bar" をクリアします。 $this -> _view -> clear (); // 全ての変数をクリ ...
https://man.mtool.work/php/8.3/yaf-view-simple.clear.html
Yaf_View_Simple::assign — 値を代入する | PHP 8.3 8358
Yaf_View_Simple::assign (Yaf >=1.0.0) Yaf_View_Simple::assign — 値を代入する 説明 public function Yaf_View_Simple::assign ( string $name , mixed $value = ? ): bool 変数をビューエンジンに代入します。 パラメータ name 文字列あるいは配列。 文字 ... ple::assign() の例 <?php class IndexController extends Yaf_Controller_Abstract { public function indexAction () { $this -> getView ()-> assign ( "foo" , "bar" ); $this -> _view -> assign ( array( "key" => "value" , "name" => "value" )); } } ?> 例2 テンプ ...
https://man.mtool.work/php/8.3/yaf-view-simple.assign.html
Yaf_Action_Abstract クラス | PHP 8.3 8052
Yaf_Action_Abstract クラス (Yaf >=1.0.0) はじめに アクションは、Yaf の個別のファイルで定義します ( Yaf_Controller_Abstract を参照ください)。 アクションメソッドには Yaf_Action_Abstract クラスも使えます。 Yaf から呼び出すためのエントリポイント ... ct public function Yaf_Controller_Abstract::getResponse (): Yaf_Response_Abstract public function Yaf_Controller_Abstract::getView (): Yaf_View_Interface public function Yaf_Controller_Abstract::getViewpath (): string public function Yaf_Controller_Abst ...
https://man.mtool.work/php/8.3/class.yaf-action-abstract.html
例 | PHP 8.3 7909
例 例1 標準的なアプリケーションのディレクトリ構造 - index.php - .htaccess + conf |- application.ini // アプリケーションの設定 - application/ - Bootstrap.php + controllers - Index.php // デフォルトのコントローラ + views |+ index - index.phtm ... /* デフォルトアクション */ public function indexAction () { $this -> _view -> word = "hello world" ; // あるいは // $this->getView()->word = "hello world"; } } ?> 例6 デフォルトのビューテンプレート <html> <head> <title>Hello World</title> </head> <body> ...
https://man.mtool.work/php/8.3/yaf.tutorials.html
Yet Another Framework (Yaf) | PHP 8.3 7190
Yet Another Framework (Yaf) はじめに Yet Another Framework ( Yaf ) 拡張モジュールは PHP のフレームワークで、ウェブアプリケーションの開発に使います。 ちょっとした Yaf のベンチマークが » Yaf Performance にあります。 手っ取り早く使い始めるには ... ブジェクトを取得する Yaf_Controller_Abstract::getResponse — 現在のレスポンスオブジェクトを取得する Yaf_Controller_Abstract::getView — ビューエンジンを取得する Yaf_Controller_Abstract::getViewpath — getViewpath の目的を書く Yaf_Controller_Abstract::init — ...
https://man.mtool.work/php/8.3/book.yaf.html
PREV 1 NEXT