(Yaf >=1.0.0)
Examples:
define action in a separate file

You can also define a action method in a separate PHP script by using this property and Yaf_Action_Abstract.

<?php
class IndexController extends Yaf_Controller_Abstract {
    protected $actions = array(
        /** now dummyAction is defined in a separate file */
        "dummy" => "actions/Dummy_action.php",
    );

    /* action method may have arguments */
    public indexAction($name, $id) {
       /* $name and $id are unsafe raw data */
       assert($name == $this->getRequest()->getParam("name"));
       assert($id   == $this->_request->getParam("id"));
    }
}
?>

Dummy_action.php
<?php
class DummyAction extends Yaf_Action_Abstract {
    /* a action class shall define this method  as the entry point */
    public execute() {
    }
}
?>

Yaf_Controller_Abstract::forward

(Yaf >=1.0.0) foward to another action public

2016-02-24 16:07:28
Yaf_Controller_Abstract::getViewpath

(Yaf >=1.0.0) The getViewpath purpose public

2016-02-24 16:07:29
Yaf_Controller_Abstract::getResponse

(Yaf >=1.0.0) Retrieve current response object

2016-02-24 16:07:28
Yaf_Controller_Abstract::getInvokeArgs

(Yaf >=1.0.0) The getInvokeArgs purpose public

2016-02-24 16:07:28
Yaf_Controller_Abstract::init

(Yaf >=1.0.0) Controller initializer public

2016-02-24 16:07:29
Yaf_Controller_Abstract::initView

(Yaf >=1.0.0) The initView purpose public

2016-02-24 16:07:29