Skip to content

Instantly share code, notes, and snippets.

@m4rcsch
Created March 24, 2011 16:35
Show Gist options
  • Save m4rcsch/885376 to your computer and use it in GitHub Desktop.
Save m4rcsch/885376 to your computer and use it in GitHub Desktop.
bootstrap.php
<?php
/**
* lithium the most RAD php Framework
* your bootstrap
**/
use li3_dyna_lib\extensions\LibLoader;
//debug mode :)
\ini_set("display_errors", 1);
LibLoader::config(array(
'default'=>array(
'modelName' => 'drupalModel',
));
LibLoader::run();
?>
<?php
namespace li3_dyna_lib\extensions;
//this file is an example, it wont work without any coding ;)
//maybe use the LibraryClass?
//use the Model Class
class Analyze extends \lithium\core\Static {
public static function run(){
//fetch the model name from the config
//initilize a new Model
// fetch all entities
//cycle trough the resultSet
//initilize the Libs like Library::add(...)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment