PHP 7.2.0 Release Candidate 4 Released


(Yaf >=1.0.0)

Yaf_Action_Abstract::executeAction entry point


abstract publicmixed Yaf_Action_Abstract::execute ([ mixed $arg [, mixed $... ]] )

user should always define this method for a action, this is the entry point of an action. Yaf_Action_Abstract::execute() may have agruments.


The value retrived from the request is not safe. you should do some filtering work before you use it.

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti


Example #1 Yaf_Action_Abstract::execute()example

 * A controller example
class ProductController extends Yaf_Controller_Abstract {
$actions = array(
"index" => "actions/Index.php",

Example #2 Yaf_Action_Abstract::execute()example

 * ListAction
class ListAction extends Yaf_Action_Abstract {
     public function 
execute ($name$id) {
assert($name == $this->getRequest()->getParam("name"));
assert($id   == $this->getRequest()->getParam("id"));

Il precedente esempio visualizzerĂ  qualcosa simile a:

 * Now assuming we are using the Yaf_Route_Static route 
 * for request: http://yourdomain/product/list/name/yaf/id/22
 * will result:

Vedere anche:

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top