Location: PHPKode > projects > AModules3 > amodules-3.0.1/samples/10-basic-auth/main.php
<?
include '../../trunk/loader.php';

class MyAdmin extends ApiAdmin{
    function init(){
        parent::init();
        $this->add('BasicAuth')->setPassword('123')->check();
        $this->add('Menu','menu','Menu')->addMenuItem('About')->addMenuItem('Logout');
    }
}

$api = new MyAdmin('AModules3_sample');
$api->main();
?>
Return current item: AModules3