jeffgalendez / ajde

Automatically exported from code.google.com/p/ajde
0 stars 0 forks source link

Refactoring! #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Refactor the library such that we can include Ajde by simply including 
'lib/Ajde/Ajde.php' and calling something like:

$app = Ajde::create();
$app->run($route);
echo $app->output();

Optionally specifying paths like so:

define('PRIVATE_DIR', 'private/');
etc.

This should make it possible to decouple Ajde from a fixed directory structure. 
Also, the index.php file should not be neccesary for the Ajde core to function 
properly (thus only used for shutdown and error_reporting function etc.)

Also, this means that the Ajde_Application class must not be a singleton object 
anymore and Ajde::app() should be replaced in code everywhere.

Original issue reported on code.google.com by hong...@gmail.com on 19 Oct 2011 at 12:49