Location: PHPKode > projects > Monyet > controllers/admin.php
<?php

Class Admin extends ControllerBase {

	public function __construct(){
		parent::__construct();
	}

	public function index(){
		$this->session->set('last','admin/index');	
		$this->session->set('lastadmin','admin/index');	
		$this->xml->buildMenu($this->navigator->getMenu(2));
		$this->xml->addText('Welcome '.$this->session->get('user').', ','welcome',0);
		$this->xml->addURL('logout','javascript:sndReq(\'authentication/logout\')','welcome',1);
		$this->xml->addText($this->getContent($this->getName().'/index'),'rightcontent',0);
		$this->xml->addText(null,'panel',0);
		$this->xml->addBreak('rightcontent',2);
		$this->xml->buildSubMenu($this->navigator->getSubMenu($this));
		$this->xml->flush();
	}

	public function __destruct(){
	}
}
?>
Return current item: Monyet