CodeIgniter 2 + HMVC + RedBean (ORM)
PHP Other
Latest commit d5f942d Mar 25, 2013 @rubensarrio Merge pull request #4 from pelgrimendekroon/master
Updated Codeigniter and Redbean
Failed to load latest commit information.
application Make use of HMVC for test and welcome page Mar 24, 2013
system Updated CI and RedBean Mar 24, 2013
.gitignore Updated CI and RedBean Mar 24, 2013
.htaccess Updated README Mar 24, 2013
index.php Updated CI and RedBean Mar 24, 2013
license.txt Updated CI and RedBean Mar 24, 2013

CodeIgniter 2.1 + HMVC + RedBean 3

Setup ready to use CodeIgniter framework with:

How to use?


Set up application/config/config.php and application/config/database.php for your needs.

Load RedBean library adding it on autoload.php, example:

$autoload['libraries'] = array('rb');

Or load RedBean library in any controller, example:


Using RedBean

You can use RedBean API in your controller:



// New bean
$post = R::dispense('post');

// Load bean by id
$post = R::load('post', 1);

// Find all beans
$posts = R::find('post');

// Find beans
$posts = R::find('post', 'published = 1');

// Save bean

Using HMVC

With HMVC you can build your application modulair.

You can find the standard welcome page in:


More information