Created
March 24, 2011 16:35
-
-
Save m4rcsch/885376 to your computer and use it in GitHub Desktop.
bootstrap.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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(); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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