<?
/*
* AModules3 allows you to create more specialized Api's. Those Api's
* might have more specific requirements but they would provide more
* features.
*
* This is a minimalistic base for ApiAdmin. In order to aid you there
* is a kick-start script. Just run amodules3/kickstart-admin.sh
* and it will create the following mandatory items:
* .htaccess - which is used to rewrite pretty URLs
* templates - for customized templates (apiadmin have it's own set of templates)
* main.php - a file which defines structure of your admin and glues
* everything together.
*
*
* It's advised to create 'amodules3' subdirectory or link, where you gonna
* have 'lib' and other directories. When you use kickstart, it takes care
* of that
*/
include '../../trunk/loader.php';
/*
* As in any AModules3 application we need to include loader first.
*/
/*
* There are usually 2 ways how to use classes in AModules3 and those are:
* - redefine them and fine-tune
* - use their default methods, but customize them from outside after
* creating them.
*
* Also, remember! This is the only line where you should use "new" normally.
*/
$api = new ApiAdmin('AModules3_website');
/*
* ApiAdmin does much more than ApiBase or ApiStd out of the box. There are also
* things it does not do, but you can do it with a line or few. For instance, it
* does not connect to database, but it takes you one line to do it:
* $api->dbConnect($dsn);
*
* ApiAdmin will take care of problems. See next sample for more details.
*/
$api->main();