<?php
class AccountController extends Yaf_Controller_Abstract
{
public function loginAction() {
if (!$this->getRequest()->getParam("user")) {
// send a Location header with HTTP status 302
$this->redirect("http://www.example.com/account/login/");
return false; // skip auto-rendering
}
}
}
?>