Results of 1 - 10 of about 33 for コントローラ (0.003 sec.)
- Yaf_Router クラス | PHP 8.3 12353
- Yaf_Router クラス (Yaf >=1.0.0) はじめに Yaf_Router は、フレームワークの標準のルーターです。 ルーティングとは、URI エンドポイント (URI の中で、ベース URL の後に続く部分。 Yaf_Request_Abstract::setBaseUri() を参照ください) を受け取ってそこか
... らパラメータを抽出し、 リクエストを受け取るモジュールやコントローラそしてアクションを判断する処理のことです。 モジュール、コントローラ、アクション、そしてその他のパラメータは Yaf_Request_Abst ... とめられ、 そして Yaf_Dispatcher で処理します。 ルーティングが行われるのは一度だけで、リクエストを最初に受け取ってから 最初のコントローラにディスパッチする前に行われます。 Yaf_Router は、mod_rewrite 風の機能を PHP を使って実現できるような設計になっています。 Ru ... フォルトルート // このように設定しているものとします $conf = array( "application" => array( "modules" => "Index,Blog", ), ); コントローラのみ http://example/news controller == news アクションのみ (php.ini で yaf.action_prefer=1 とした場合) action == news モジュ ...
-
https://man.mtool.work/php/8.3/class.yaf-router.html
- Yaf_Request_Abstract::setControllerName — コントローラー名を設定する | PHP 8.3 11952
- Yaf_Request_Abstract::setControllerName (Yaf >=1.0.0) Yaf_Request_Abstract::setControllerName — コントローラー名を設定する 説明 public function Yaf_Request_Abstract::setControllerName ( string $controller , bool $format_name = true ): void
... コントローラー名をリクエストに設定します。 このメソッドは通常、ルーティング結果のコントローラー名を設定するカスタムルータで使います。 パラメータ controller コントローラー名を表す string 。 "Index" や "Foo_Bar" のように ...
-
https://man.mtool.work/php/8.3/yaf-request-abstract.setcontrollername.html
- Yaf_Controller_Abstract クラス | PHP 8.3 11342
- Yaf_Controller_Abstract クラス (Yaf >=1.0.0) はじめに Yaf_Controller_Abstract は Yaf システムの中心となるクラスです。 MVC は Model-View-Controller の略で、 アプリケーションのロジックと表示のロジックを切り離すためのデザインパターンです。 すべ
... てのカスタムコントローラは Yaf_Controller_Abstract を継承する必要があります。 カスタムコントローラでは __construct を定義できません。そのため、 Yaf_ ... Controller_Abstract ではマジックメソッド Yaf_Controller_Abstract::init() を用意しています。 カスタムコントローラで init() メソッドを定義すると、 コントローラのインスタンスを作成するときにそれが呼ばれます。 アクションには引数を持たせるこ ... action class shall define this method as the entry point */ public function execute () { } } ?> _module モジュール名 _name コントローラ名 _request 現在のリクエストオブジェクト _response 現在のレスポンスオブジェクト _invoke_args _view ビューエンジンオブジェクト ...
-
https://man.mtool.work/php/8.3/class.yaf-controller-abstract.html
- Yaf_Controller_Abstract::init — コントローラを初期化する | PHP 8.3 10283
- Yaf_Controller_Abstract::init (Yaf >=1.0.0) Yaf_Controller_Abstract::init — コントローラを初期化する 説明 public function Yaf_Controller_Abstract::init (): void Yaf_Controller_Abstract::__construct() は final メソッドなので、 オーバーライド
... できません。しかし、かわりに Yaf_Controller_Abstract::init() を定義できます。 これは、コントローラオブジェクトのインスタンスができた直後に呼ばれます。 パラメータ この関数にはパラメータはありません。 戻り値 参考 Yaf_Control ...
-
https://man.mtool.work/php/8.3/yaf-controller-abstract.init.html
- Yet Another Framework (Yaf) | PHP 8.3 10010
- Yet Another Framework (Yaf) はじめに Yet Another Framework ( Yaf ) 拡張モジュールは PHP のフレームワークで、ウェブアプリケーションの開発に使います。 ちょっとした Yaf のベンチマークが » Yaf Performance にあります。 手っ取り早く使い始めるには
... e Yaf_Dispatcher::setDefaultAction — デフォルトのアクション名を変更する Yaf_Dispatcher::setDefaultController — デフォルトのコントローラ名を変更する Yaf_Dispatcher::setDefaultModule — デフォルトのモジュール名を変更する Yaf_Dispatcher::setErrorHandler — エラーハ ... — ビューエンジンを取得する Yaf_Controller_Abstract::getViewpath — getViewpath の目的を書く Yaf_Controller_Abstract::init — コントローラを初期化する Yaf_Controller_Abstract::initView — The initView purpose Yaf_Controller_Abstract::redirect — URL にリダイレクト ... af_Action_Abstract クラス Yaf_Action_Abstract::execute — アクションのエントリポイント Yaf_Action_Abstract::getController — コントローラオブジェクトを取得する Yaf_Action_Abstract::getControllerName — Get controller name Yaf_View_Interface — Yaf_View_Interface ...
-
https://man.mtool.work/php/8.3/book.yaf.html
- Yaf_Loader クラス | PHP 8.3 9609
- Yaf_Loader クラス (Yaf >=1.0.0) はじめに Yaf_Loader は、 Yaf 用に包括的なオートローディング機能を導入します。 最初に Yaf_Application のインスタンスを取得するときに、 Yaf_Loader はシングルトンのインスタンスを作って それを spl_autoload に登録
... y.php class A_B_TestModel => // APPLICATION_PATH/models/A/B/Test.php 注意 : 2.1.18 からは、Yaf はユーザースクリプト側からのコントローラのオートロードに対応しました (つまり、ユーザーが書いた PHP スクリプトからオートロードを実行できるということです。 ブートスト ... ラップやプラグインから、コントローラのstaticプロパティにアクセスできます)。 しかし、オートローダーがコントローラクラスを探す場所は、デフォルトのモジュールフォル ...
-
https://man.mtool.work/php/8.3/class.yaf-loader.html
- Yaf_Action_Abstract::getController — コントローラオブジェクトを取得する | PHP 8... 9561
- Yaf_Action_Abstract::getController (Yaf >=1.0.0) Yaf_Action_Abstract::getController — コントローラオブジェクトを取得する 説明 public function Yaf_Action_Abstract::getController (): Yaf_Controller_Abstract 現在のコントローラオブジェクトを取得
...
-
https://man.mtool.work/php/8.3/yaf-action-abstract.getcontroller.html
- 実行時設定 | PHP 8.3 9032
- 実行時設定 php.ini の設定により動作が変化します。 Yaf 設定オプション 名前 デフォルト 変更可能 変更履歴 yaf.library INI_ALL yaf.action_prefer 0 INI_ALL yaf.lowcase_path 0 INI_ALL yaf.use_spl_autoload 0 INI_ALL yaf.forward_limit 5 INI_ALL yaf
... グローバルライブラリをこのディレクトリから探します。 yaf.action_prefer int PATH_INFO の要素がひとつだけだった場合に、 それをコントローラとみなすかアクションとみなすか。 この設定を On にすると、アクション名とみなします。 yaf.lowcase_path int クラスのオートロード ... Loader はクラスのサフィックスを この文字列で判断します。 たとえば、この値を "_" にすると、Yaf_Loader は Index_Controller をコントローラクラスとみなし、IndexController は通常のクラスとみなします。 yaf.cache_config int これを On にしているときに ini ファイルを ...
-
https://man.mtool.work/php/8.3/yaf.configuration.html
- Yaf_Controller_Abstract::__construct — Yaf_Controller_Abstract のコンストラクタ... 8679
- Yaf_Controller_Abstract::__construct (Yaf >=1.0.0) Yaf_Controller_Abstract::__construct — Yaf_Controller_Abstract のコンストラクタ 説明 final private function Yaf_Controller_Abstract::__construct () Yaf_Controller_Abstract::__construct() は
... act::init() を参照ください。 パラメータ この関数にはパラメータはありません。 戻り値 参考 Yaf_Controller_Abstract::init() - コントローラを初期化する 他のマニュアルの関連ページ Linux JM spu_run(2) Django index Linux JM inotify_init1(2) Linux JM inotify_init(2) ...
-
https://man.mtool.work/php/8.3/yaf-controller-abstract.construct.html
- 例 | PHP 8.3 8246
- 例 例1 標準的なアプリケーションのディレクトリ構造 - index.php - .htaccess + conf |- application.ini // アプリケーションの設定 - application/ - Bootstrap.php + controllers - Index.php // デフォルトのコントローラ + views |+ index - index.phtm
... ory=APPLICATION_PATH "/application/" ; product セクションは yaf セクションを継承する [product:yaf] foo=bar 例5 デフォルトのコントローラ <?php class IndexController extends Yaf_Controller_Abstract { /* デフォルトアクション */ public function indexAction () { ...
-
https://man.mtool.work/php/8.3/yaf.tutorials.html