« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 14 for indexAction (0.002 sec.)
Yaf_Controller_Abstract::getName — Get controller name | PHP 8.3 11745
Yaf_Controller_Abstract::getName (Yaf >=3.2.0) Yaf_Controller_Abstract::getName — Get controller name 説明 public function Yaf_Controller_Abstract::getName (): ? string Returns the name of the controller. パラメータ この関数にはパラメータは ... Yaf_Controller_Abstract::getName() example <?php class ProductController extends Yaf_Controller_Abstract { public function indexAction () { // the controller name, without the "Controller" suffix var_dump ( $this -> getName ()); } } ?> 上の例の出力は、 たと ...
https://man.mtool.work/php/8.3/yaf-controller-abstract.getname.html
Yaf_View_Simple::__set — 値をエンジンに設定する | PHP 8.3 10923
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() をもっと簡単にするもうひとつの方法です。 パラメ ... 戻り値 例 例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() - Th ...
https://man.mtool.work/php/8.3/yaf-view-simple.set.html
Yaf_View_Simple::clear — 代入した値をクリアする | PHP 8.3 10100
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 ( ...
https://man.mtool.work/php/8.3/yaf-view-simple.clear.html
Yaf_Request_Abstract::clearParams — Remove all parameters | PHP 8.3 9277
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 ... Yaf_Request_Abstract::clearParams() example <?php class IndexController extends Yaf_Controller_Abstract { public function indexAction () { $request = $this -> getRequest (); $request -> setParam ( "referrer" , "newsletter" ); var_dump ( $request -> getPara ...
https://man.mtool.work/php/8.3/yaf-request-abstract.clearparams.html
Yaf_Request_Abstract::get — Retrieve a variable from the request | PHP 8.3 9277
Yaf_Request_Abstract::get (Yaf >=3.2.2) Yaf_Request_Abstract::get — Retrieve a variable from the request 説明 public function Yaf_Request_Abstract::get ( string $name , mixed $default = ? ): mixed Retrieves a variable from the request. The ... 例 例1 Yaf_Request_Abstract::get() example <?php class SearchController extends Yaf_Controller_Abstract { public function indexAction () { $request = $this -> getRequest (); // Assuming the request is /search?keyword=yaf&page=2 $keyword = $request -> get ( ...
https://man.mtool.work/php/8.3/yaf-request-abstract.get.html
Yaf_Request_Abstract::getPost — Fetch a POST parameter | PHP 8.3 9277
Yaf_Request_Abstract::getPost (Yaf >=3.2.2) Yaf_Request_Abstract::getPost — Fetch a POST parameter 説明 public function Yaf_Request_Abstract::getPost ( string $name = ? , mixed $default = ? ): mixed Retrieves a variable from $_POST. パラメー ... 例1 Yaf_Request_Abstract::getPost() example <?php class LoginController extends Yaf_Controller_Abstract { public function indexAction () { // Assuming the form was submitted with POST /login if ( $this -> getRequest ()-> isPost ()) { $username = $this -> g ...
https://man.mtool.work/php/8.3/yaf-request-abstract.getpost.html
Yaf_Request_Abstract::getQuery — Fetch a query parameter | PHP 8.3 9277
Yaf_Request_Abstract::getQuery (Yaf >=3.2.2) Yaf_Request_Abstract::getQuery — Fetch a query parameter 説明 public function Yaf_Request_Abstract::getQuery ( string $name = ? , mixed $default = ? ): mixed Retrieves a variable from $_GET. パラ ... 例1 Yaf_Request_Abstract::getQuery() example <?php class SearchController extends Yaf_Controller_Abstract { public function indexAction () { // Assuming the request is /search?keyword=yaf&page=2 $keyword = $this -> getRequest ()-> getQuery ( "keyword" ); $pa ...
https://man.mtool.work/php/8.3/yaf-request-abstract.getquery.html
Yaf_Request_Abstract::getRequest — Fetch a REQUEST variable | PHP 8.3 9277
Yaf_Request_Abstract::getRequest (Yaf >=3.2.2) Yaf_Request_Abstract::getRequest — Fetch a REQUEST variable 説明 public function Yaf_Request_Abstract::getRequest ( string $name = ? , mixed $default = ? ): mixed Retrieves a variable from $_RE ... Yaf_Request_Abstract::getRequest() example <?php class SearchController extends Yaf_Controller_Abstract { public function indexAction () { // Assuming the request is /search?keyword=yaf $keyword = $this -> getRequest ()-> getRequest ( "keyword" ); $source ...
https://man.mtool.work/php/8.3/yaf-request-abstract.getrequest.html
Yaf_View_Simple::assign — 値を代入する | PHP 8.3 9277
Yaf_View_Simple::assign (Yaf >=1.0.0) Yaf_View_Simple::assign — 値を代入する 説明 public function Yaf_View_Simple::assign ( string $name , mixed $value = ? ): bool 変数をビューエンジンに代入します。 パラメータ name 文字列あるいは配列。 文字 ... 戻り値 例 例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 ...
https://man.mtool.work/php/8.3/yaf-view-simple.assign.html
Yaf_View_Simple::assignRef — The assignRef purpose | PHP 8.3 8454
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() とは異なり、 このメソッドは参照で値 ... り値 例 例1 Yaf_View_Simple::assignRef() の例 <?php class IndexController extends Yaf_Controller_Abstract { public function indexAction () { $value = "bar" ; $this -> getView ()-> assign ( "foo" , $value ); /* Yaf 2.1.4 より前のバージョンにはバグがあり、 * こ ...
https://man.mtool.work/php/8.3/yaf-view-simple.assignref.html
PREV 1 2 NEXT