Skip to content

webadtmtrh/UPDATE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeIgniter 2.1 + HMVC + RedBean 3

Setup ready to use CodeIgniter framework with:

How to use?

Configuration

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:

$this->load->library('rb');

Using RedBean

You can use RedBean API in your controller:

R::debug(TRUE);

Examples:

// 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
R::store($post);

Using HMVC

With HMVC you can build your application modulair.

You can find the standard welcome page in:

/application/modules/welcome/controllers/welcome.php

More information

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published