<?php
class AccountController extends Yaf_Controller_Abstract
{
public function indexAction()
{
if (!Yaf_Session::getInstance()->has("login")) {
/* send a Location header pointing to the login page */
$this->getResponse()->setRedirect("/account/login");
return false; // nothing to render here
}
}
}
?>