<?php
class ListAction extends Yaf_Action_Abstract
{
public function execute() {
// the controller that owns this action
$controller = $this->getController();
var_dump($controller instanceof Yaf_Controller_Abstract);
// e.g. to reach its view engine
$controller->getView()->assign("products", array("yaf", "php"));
}
}
?>
The above example will output
something similar to: