Description: Web site for car dealership.
Work: HTML/CSS, Krustr° Content Framework
Status: online
Description: Daily deal site
Work: HTML/CSS, Krustr° Content Framework, payment gateway, newsletter system
Status: offline
Description: Daily deal site
Work: HTML/CSS, Krustr° Content Framework, payment gateway, newsletter system
In collaboration with Dot Studio
Status: online
Description: The best deals in your town.
Work: HTML/CSS, Krustr° Content Framework, payment gateway, newsletter system
In collaboration with Fulspectrum
Status: online
I still haven’t updated my work, so here’s something in the meantime.
I’ve managed to successfuly integrate RedBean into the CodeIgniter PHP framework. I don’t think any additional explanation is necesary since it’s pretty simple and basic stuff.
Here are the reuired steps:
$this->ci =& get_instance();
// Include database configuration
include(APPPATH.'/config/database.php');
// Include required files
include(APPPATH.'/thirdparty/redbean/redbean.inc.php');
// Database data
$hostname = $db[$active_group]['hostname'];
$username = $db[$active_group]['username'];
$password = $db[$active_group]['password'];
$database = $db[$active_group]['database'];
// Create RedBean instance
$toolbox = RedBean_Setup::kickstartDev('mysql:host='.$hostname.';dbname='.$database, $username, $password);
$this->ci->rb = $toolbox->getRedBean();
$post = $this->rb->dispense("post");
$post->title = 'My first post from CodeIgniter';
$post->body ='Lorem ipsum dolor sit amet, consectetur adipisicing elit....';
$post->created = time();
$id = $this->rb->store($post);
Haven’t tested it much but everything seems to work.
If someone has a better sollution just let me know.