<?php
class IndexController extends Yaf_Controller_Abstract
{
// init() is called right after the controller is instantiated,
// before any action is dispatched
public function init() {
$this->getView()->assign("sitename", "Yaf Tutorial");
}
public function indexAction() {
// ...
}
}
?>