Results of 1 - 10 of about 97 for View (0.002 sec.)
- Yaf_View_Simple クラス | PHP 8.3 12104
- Yaf_View_Simple クラス (Yaf >=1.0.0) はじめに Yaf_View_Simple は Yaf の組み込みテンプレートエンジンです。 シンプルながらも高速なテンプレートエンジンで、PHP スクリプトテンプレートだけに対応しています。 クラス概要 class Yaf_View_Simple implem
... ents Yaf_View_Interface { /* プロパティ */ protected $ _tpl_vars ; protected $ _tpl_dir ; /* メソッド */ final public function __constru ... mixed $value ): void public function setScriptPath ( string $template_dir ): bool } プロパティ _tpl_vars _tpl_dir 目次 Yaf_View_Simple::assign — 値を代入する Yaf_View_Simple::assignRef — The assignRef purpose Yaf_View_Simple::clear — 代入した値をクリ ... アする Yaf_View_Simple::__construct — Yaf_View_Simple のコンストラクタ Yaf_View_Simple::display — レンダリングして表示する Yaf_View_Simple ...
-
https://man.mtool.work/php/8.3/class.yaf-view-simple.html
- Yaf_View_Simple::clear — 代入した値をクリアする | PHP 8.3 10283
- Yaf_View_Simple::clear (Yaf >=2.2.0) Yaf_View_Simple::clear — 代入した値をクリアする 説明 public function Yaf_View_Simple::clear ( string $name = ? ): bool 代入した値をクリアします。 パラメータ name 代入した変数名。 空の場合は、すべての変数
... をクリアします。 戻り値 例 例1 Yaf_View_Simple::clear() の例 <?php class IndexController extends Yaf_Controller_Abstract { public function indexAction () { $this ... -> getView ()-> clear ( "foo" )-> clear ( "bar" ); // "foo" と "bar" をクリアします。 $this -> _view -> clear (); // 全ての変数をクリ ... アします } } ?> 参考 Yaf_View_Simple::assignRef() - The assignRef purpose Yaf_View_Interface::assign() - 値をビューエンジンに代入する Yaf_View_Simple::_ ...
-
https://man.mtool.work/php/8.3/yaf-view-simple.clear.html
- Yaf_View_Interface クラス | PHP 8.3 10126
- Yaf_View_Interface クラス (Yaf >=1.0.0) はじめに Yaf では、組み込みのビューエンジン Yaf_View_Simple のかわりにカスタムビューを自作できるようになっています。 その実例は、 Yaf_Dispatcher::setView() を参照ください。 クラス概要 class Yaf_View_I
... ring $tpl , array $tpl_vars = ? ): string abstract public function setScriptPath ( string $template_dir ): void } 目次 Yaf_View_Interface::assign — 値をビューエンジンに代入する Yaf_View_Interface::display — テンプレートをレンダリングして出力する Yaf_ ... View_Interface::getScriptPath — The getScriptPath purpose Yaf_View_Interface::render — テンプレートをレンダリングする Yaf_View_Interface::setScriptPath — The setScriptPath purpose 他のマニュ ...
-
https://man.mtool.work/php/8.3/class.yaf-view-interface.html
- Yaf_View_Simple::__set — 値をエンジンに設定する | PHP 8.3 9982
- 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() をもっと簡単にするもうひとつの方法です。 パラメ
... ータ name 変数名。 value 変数の値。 戻り値 例 例1 Yaf_View_Simple::__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 ... f_View_Interface::assign() - 値をビューエンジンに代入する 他のマニュアルの関連ページ Django intro Django index Django base Django ...
-
https://man.mtool.work/php/8.3/yaf-view-simple.set.html
- Yaf_View_Simple::assign — 値を代入する | PHP 8.3 9929
- Yaf_View_Simple::assign (Yaf >=1.0.0) Yaf_View_Simple::assign — 値を代入する 説明 public function Yaf_View_Simple::assign ( string $name , mixed $value = ? ): bool 変数をビューエンジンに代入します。 パラメータ name 文字列あるいは配列。 文字
... 列の場合は、次の引数 $value が必須となります。 value 代入する値。 戻り値 例 例1 Yaf_View_Simple::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 テンプ ... $this -> _tpl_vars as $name => $value ) { echo $ $name ; // or echo $this->_tpl_vars[$name]; } ?> </body> </html> 参考 Yaf_View_Simple::assignRef() - The assignRef purpose Yaf_View_Interface::clear() Yaf_View_Simple::__set() - 値をエンジンに設定する ...
-
https://man.mtool.work/php/8.3/yaf-view-simple.assign.html
- Yet Another Framework (Yaf) | PHP 8.3 9576
- Yet Another Framework (Yaf) はじめに Yet Another Framework ( Yaf ) 拡張モジュールは PHP のフレームワークで、ウェブアプリケーションの開発に使います。 ちょっとした Yaf のベンチマークが » Yaf Performance にあります。 手っ取り早く使い始めるには
... 例外のキャッチのオン/オフを切り替える Yaf_Dispatcher::__construct — Yaf_Dispatcher のコンストラクタ Yaf_Dispatcher::disableView — ビューのレンダリングを無効にする Yaf_Dispatcher::dispatch — リクエストをディスパッチする Yaf_Dispatcher::enableView — ビ ... er::getResponse — Get the response object Yaf_Dispatcher::getRouter — ルーターのインスタンスを取得する Yaf_Dispatcher::initView — ビューを初期化して返す Yaf_Dispatcher::registerPlugin — プラグインを登録する Yaf_Dispatcher::returnResponse — The return ... f_Dispatcher::setRequest — The setRequest purpose Yaf_Dispatcher::setResponse — Set the response object Yaf_Dispatcher::setView — カスタムビューエンジンを設定する Yaf_Dispatcher::throwException — 例外のスローのオン/オフを切り替える Yaf_Config_Abstrac ...
-
https://man.mtool.work/php/8.3/book.yaf.html
- Yaf_View_Simple::__construct — Yaf_View_Simple のコンストラクタ | PHP 8.3 9418
- Yaf_View_Simple::__construct (Yaf >=1.0.0) Yaf_View_Simple::__construct — Yaf_View_Simple のコンストラクタ 説明 final public function Yaf_View_Simple::__construct ( string $template_dir , array $options = ? ) パラメータ template_dir テンプレ
... ートのベースディレクトリ。デフォルトは APPLICATOIN . "/views" です。 options エンジンのオプション。Yaf 2.1.13 からは、短いタグ "<?=$var?>" を ("short_open_tag" の値にかかわらず) テン ... 使えるようになりました。 オプション "short_tag" をオフにすると、テンプレートで短いタグを使わないようにできます。 例 例1 Yaf_View_Simple::__construct() の例 <?php define ( "TEMPLATE_DIRECTORY" , APPLICATOIN_PATH . '/views' ); $view = new Yaf_View_Simpl ...
-
https://man.mtool.work/php/8.3/yaf-view-simple.construct.html
- Yaf_View_Simple::assignRef — The assignRef purpose | PHP 8.3 9012
- 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() とは異なり、 このメソッドは参照で値
... をエンジンに代入します。 パラメータ name テンプレート内でのアクセスに使う名前。 value 代入する値。 戻り値 例 例1 Yaf_View_Simple::assignRef() の例 <?php class IndexController extends Yaf_Controller_Abstract { public function indexAction () { $v ... alue = "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::setViewpath — The setViewpath purpose | PHP 8.3 8763
- Yaf_Controller_Abstract::setViewpath (Yaf >=1.0.0) Yaf_Controller_Abstract::setViewpath — The setViewpath purpose 説明 public function Yaf_Controller_Abstract::setViewpath ( string $view_directory ): void パラメータ view_directory 戻り値 他
... のマニュアルの関連ページ DuckDB CREATE VIEW Statement DuckDB ALTER VIEW Statement ...
-
https://man.mtool.work/php/8.3/yaf-controller-abstract.setviewpath.html
- Yaf_Dispatcher::setView — カスタムビューエンジンを設定する | PHP 8.3 8305
- Yaf_Dispatcher::setView (Yaf >=1.0.0) Yaf_Dispatcher::setView — カスタムビューエンジンを設定する 説明 public function Yaf_Dispatcher::setView ( Yaf_View_Interface $view ): Yaf_Dispatcher このメソッドは、 Yaf_View_Simple ではなくカスタムビュ
... ーエンジンを使いたいときに利用します。 パラメータ view Yaf_View_Interface のインスタンス。 戻り値 例 例1 カスタムビューエンジンの例 <?php require "/path/to/smarty/Smarty.class.p ... hp" ; class Smarty_Adapter implements Yaf_View_Interface { /** * Smarty オブジェクト * @var Smarty */ public $_smarty ; /** * コンストラクタ * * @param string $tmplPath ... すべての変数をクリアする * * {@link assign()} あるいはプロパティのオーバーロード * ({@link __get()}/{@link __set()}) で Yaf_View に代入したすべての変数をクリアします * * @return void */ public function clearVars () { $this -> _smarty -> clear_all_assi ...
-
https://man.mtool.work/php/8.3/yaf-dispatcher.setview.html