Revision: 29210
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 23, 2010 21:26 by jiewmeng
Initial Code
// IndexController.php
public function widgetenabledoutputAction() {
$html = "<ul>";
for ($i = 1; $i <= 5; $i++) {
echo "<li>Item $i</li>";
}
$html .= "</ul>";
$this->view->html = $html;
}
// index action view script (index.phtml), notice we are not calling widgetenabledoutputAction but can get output from it
echo $this->action(
$action = "widgetenabledoutput",
$controller = "index",
$module = null,
array(
"itemsPerPage" => 2 // can pass params as array
)
);
Initial URL
Initial Description
Zend View Action Helpers allows you to include output from another controller action into the current output.
Initial Title
Zend Framework: Zend View Action Helpers
Initial Tags
Initial Language
PHP