<?php
class IndexController extends Yaf_Controller_Abstract
{
public function indexAction()
{
$value = "bar";
$this->getView()->assignRef("foo", $value);
/* later changes to $value are visible in the template,
* because the variable was assigned by reference */
$value = "changed";
//prevent the auto-render
Yaf_Dispatcher::getInstance()->autoRender(false);
}
}
?>