needlogin=true; $me = new User(); $me->loadMe(); $this->me = $me; $this->layout()->set("me",$me); /*if(!$me->isAdmin()) { $this->redirect("Dashboard"); }*/ } }