Results of 1 - 10 of about 12 for IndexController (0.002 sec.)
- Yaf_View_Simple::__set — 値をエンジンに設定する | PHP 8.3 11567
- 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", "b ...
-
https://man.mtool.work/php/8.3/yaf-view-simple.set.html
- Yaf_View_Simple::clear — 代入した値をクリアする | PHP 8.3 10878
- 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" ) ...
-
https://man.mtool.work/php/8.3/yaf-view-simple.clear.html
- Yaf_Dispatcher::autoRender — 自動レンダリングのオン/オフを切り替える | PHP 8.3 10170
- Yaf_Dispatcher::autoRender (Yaf >=1.0.0) Yaf_Dispatcher::autoRender — 自動レンダリングのオン/オフを切り替える 説明 public function Yaf_Dispatcher::autoRender ( bool $flag = ? ): Yaf_Dispatcher Yaf_Dispatcher は リクエストをディスパッチした後
... このパラメータを省略した場合に現在の状態を返すようになりました。 戻り値 例 例1 Yaf_Dispatcher::autoRender() の例 <?php class IndexController extends Yaf_Controller_Abstract { /* init メソッドは、コントローラを初期化したときに呼ばれます */ public function init () ...
-
https://man.mtool.work/php/8.3/yaf-dispatcher.autorender.html
- Yaf_Request_Abstract::clearParams — Remove all parameters | PHP 8.3 10170
- Yaf_Request_Abstract::clearParams (Yaf >=3.2.0) Yaf_Request_Abstract::clearParams — Remove all parameters 説明 public function Yaf_Request_Abstract::clearParams (): ? Yaf_Request_Abstract Remove all parameters set by the router, or by Yaf_R
... ータはありません。 戻り値 Returns the request object itself. 例 例1 Yaf_Request_Abstract::clearParams() example <?php class IndexController extends Yaf_Controller_Abstract { public function indexAction () { $request = $this -> getRequest (); $request -> setParam ...
-
https://man.mtool.work/php/8.3/yaf-request-abstract.clearparams.html
- Yaf_View_Simple::assign — 値を代入する | PHP 8.3 10170
- 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 - ...
-
https://man.mtool.work/php/8.3/yaf-view-simple.assign.html
- Yaf_View_Simple::assignRef — The assignRef purpose | PHP 8.3 9480
- 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 () { $value = "bar" ; $this -> getView ()-> assign ( "foo" , ...
-
https://man.mtool.work/php/8.3/yaf-view-simple.assignref.html
- Yaf_Controller_Abstract::forward — 別のアクションに転送する | PHP 8.3 8773
- Yaf_Controller_Abstract::forward (Yaf >=1.0.0) Yaf_Controller_Abstract::forward — 別のアクションに転送する 説明 public function Yaf_Controller_Abstract::forward ( string $action , array $paramters = ? ): bool public function Yaf_Controller_
... 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 Yaf_Controller_Abstract::forward() の例 <?php class IndexController extends Yaf_Controller_Abstract { public function indexAction (){ $logined = $_SESSION [ "login" ]; if (! $logined ) { $th ...
-
https://man.mtool.work/php/8.3/yaf-controller-abstract.forward.html
- 例 | PHP 8.3 8083
- 例 例1 標準的なアプリケーションのディレクトリ構造 - index.php - .htaccess + conf |- application.ini // アプリケーションの設定 - application/ - Bootstrap.php + controllers - Index.php // デフォルトのコントローラ + views |+ index - index.phtm
... plication/" ; product セクションは yaf セクションを継承する [product:yaf] foo=bar 例5 デフォルトのコントローラ <?php class IndexController extends Yaf_Controller_Abstract { /* デフォルトアクション */ public function indexAction () { $this -> _view -> word = "he ...
-
https://man.mtool.work/php/8.3/yaf.tutorials.html
- Yaf_Plugin_Abstract クラス | PHP 8.3 7375
- Yaf_Plugin_Abstract クラス (Yaf >=1.0.0) はじめに プラグインを使えば、フレームワークの拡張やカスタマイズを簡単に行えます。 プラグインは、クラスとして定義します。 実際のクラスの定義はコンポーネントによって異なります。 このインターフェイスを実
... e ) { /* final hook in this hook user can do logging or implement layout */ var_dump ( "dispatchLoopShutdown" ); } } Class IndexController extends Yaf_Controller_Abstract { public function indexAction () { return FALSE ; //prevent rendering } } $config = array( ...
-
https://man.mtool.work/php/8.3/class.yaf-plugin-abstract.html
- Yaf_Controller_Abstract クラス | PHP 8.3 6685
- Yaf_Controller_Abstract クラス (Yaf >=1.0.0) はじめに Yaf_Controller_Abstract は Yaf システムの中心となるクラスです。 MVC は Model-View-Controller の略で、 アプリケーションのロジックと表示のロジックを切り離すためのデザインパターンです。 すべ
... できます。 そのときには、このプロパティと Yaf_Action_Abstract を利用します。 例1 別ファイルでのアクションの定義 <?php class IndexController extends Yaf_Controller_Abstract { protected $actions = array( /** now dummyAction is defined in a separate file */ "dummy" ...
-
https://man.mtool.work/php/8.3/class.yaf-controller-abstract.html