<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Creo</title>
	<atom:link href="http://creolab.hr/feed/" rel="self" type="application/rss+xml" />
	<link>http://creolab.hr</link>
	<description>Portfolio and digital playground of Boris Strahija</description>
	<lastBuildDate>Mon, 14 Nov 2011 22:50:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Toyota Bačić</title>
		<link>http://creolab.hr/2011/08/toyota-bacic/</link>
		<comments>http://creolab.hr/2011/08/toyota-bacic/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 11:34:16 +0000</pubDate>
		<dc:creator>Boris Strahija</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Spotlight]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[krustr]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://creolab.hr/?p=85</guid>
		<description><![CDATA[<img width="150" height="150" src="http://creolab.hr/wp-content/uploads/2011/08/Screen-Shot-2011-08-09-at-13.32.12-150x150.png" class="attachment-thumbnail wp-post-image" alt="Toyota Bačić" title="Toyota Bačić" style="float:right;" />Description: Web site for car dealership. Work: HTML/CSS, Krustr° Content Framework Status: offline]]></description>
			<content:encoded><![CDATA[<img width="150" height="150" src="http://creolab.hr/wp-content/uploads/2011/08/Screen-Shot-2011-08-09-at-13.32.12-150x150.png" class="attachment-thumbnail wp-post-image" alt="Toyota Bačić" title="Toyota Bačić" style="float:right;" /><p><strong>Description:</strong> Web site for car dealership.</p>
<p><strong>Work:</strong> HTML/CSS, Krustr° Content Framework</p>
<p><strong>Status: </strong>offline</p>
]]></content:encoded>
			<wfw:commentRss>http://creolab.hr/2011/08/toyota-bacic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RedBean + CodeIgniter, Take 2</title>
		<link>http://creolab.hr/2011/02/redbean-codeigniter-take-2/</link>
		<comments>http://creolab.hr/2011/02/redbean-codeigniter-take-2/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 21:56:26 +0000</pubDate>
		<dc:creator>Boris Strahija</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://creolab.hr/?p=60</guid>
		<description><![CDATA[So I recently wanted to use the newest version of RedBean ORM (1.3beta) with the latest CodeIgniter Reactor version. The whole integration process is even simpler than before, so here goes: Download RedBean, copy &#8220;rb.php&#8221; to &#8220;application/third_party/rb&#8221; Create &#8220;application/libraries/rb.php&#8221;, and put this inside: &#60;?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Rb { function [...]]]></description>
			<content:encoded><![CDATA[<p>So I recently wanted to use the newest version of <a href="http://redbeanphp.com/" target="_blank">RedBean ORM (1.3beta)</a> with the latest <a href="https://bitbucket.org/ellislab/codeigniter-reactor" target="_blank">CodeIgniter Reactor</a> version. The whole integration process is even simpler than <a href="/2009/11/integration-of-redbean-orm-with-codeigniter/">before</a>, so here goes:</p>
<ol>
<li>Download <a href="http://redbeanphp.com/" target="_blank">RedBean</a>, copy <strong>&#8220;rb.php&#8221;</strong> to <strong>&#8220;application/third_party/rb&#8221;</strong></li>
<li>Create <strong>&#8220;application/libraries/rb.php&#8221;</strong>, and put this inside:<br />
<code>
<pre>&lt;?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Rb {

	function __construct() {
		// Include database configuration
		include(APPPATH.'/config/database.php');

		// Get Redbean
		include(APPPATH.'/third_party/rb/rb.php');

		// Database data
		$host = $db[$active_group]['hostname'];
		$user = $db[$active_group]['username'];
		$pass = $db[$active_group]['password'];
		$db = $db[$active_group]['database'];

		// Setup DB connection
		R::setup("mysql:host=$host;dbname=$db", $user, $pass);
	} //end __contruct()
} //end Rb</pre>
<p></code>
</li>
<li>Load the library like any other<br />
<code>
<pre>$this-&gt;load-&gt;library('rb');</pre>
<p></code>
</li>
<li>Do fun stuff with the <a href="http://www.redbeanphp.com/manual/" target="_blank">beans</a> in your controller:<br />
<code>
<pre>$album = R::dispense('album');
$album-&gt;title = '13 Songs';
$album-&gt;artist = 'Fugazi';
$album-&gt;year = 1990;
$album-&gt;rating = 5;
$id = R::store($album);</pre>
<p></code>
</li>
</ol>
<p>For more info and examples just go to the <a href="http://www.redbeanphp.com/manual/" target="_blank">RedBean</a> docs.</p>
<p>And yeah, <a href="http://www.dischord.com/band/fugazi" target="_blank">Fugazi</a> rocks!</p>
]]></content:encoded>
			<wfw:commentRss>http://creolab.hr/2011/02/redbean-codeigniter-take-2/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Uhvati Val</title>
		<link>http://creolab.hr/2011/02/uhvati-val/</link>
		<comments>http://creolab.hr/2011/02/uhvati-val/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 17:10:49 +0000</pubDate>
		<dc:creator>Boris Strahija</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Spotlight]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[krustr]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://creolab.hr/?p=15</guid>
		<description><![CDATA[<img width="150" height="150" src="http://creolab.hr/wp-content/uploads/2011/02/Screen-Shot-2011-08-03-at-19.11.161-150x150.png" class="attachment-thumbnail wp-post-image" alt="Uhvati Val" title="Uhvati Val" style="float:right;" />Description: The best deals in your town. Work: HTML/CSS, Krustr° Content Framework, payment gateway, newsletter system In collaboration with Dot Studio Status: online]]></description>
			<content:encoded><![CDATA[<img width="150" height="150" src="http://creolab.hr/wp-content/uploads/2011/02/Screen-Shot-2011-08-03-at-19.11.161-150x150.png" class="attachment-thumbnail wp-post-image" alt="Uhvati Val" title="Uhvati Val" style="float:right;" /><p><strong>Description:</strong> The best deals in your town.</p>
<p><strong>Work:</strong> HTML/CSS, Krustr° Content Framework, payment gateway, newsletter system<br />
In collaboration with <a href="http://www.dot-studio.hr/" target="_blank">Dot Studio</a></p>
<p><strong>Status:</strong> <a href="http://www.uhvatival.hr/" target="_blank">online</a></p>
]]></content:encoded>
			<wfw:commentRss>http://creolab.hr/2011/02/uhvati-val/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BigDeal</title>
		<link>http://creolab.hr/2010/09/bigdeal/</link>
		<comments>http://creolab.hr/2010/09/bigdeal/#comments</comments>
		<pubDate>Thu, 23 Sep 2010 21:37:25 +0000</pubDate>
		<dc:creator>Boris Strahija</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Spotlight]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[krustr]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://creolab.hr/?p=51</guid>
		<description><![CDATA[<img width="150" height="150" src="http://creolab.hr/wp-content/uploads/2011/08/Screen-Shot-2011-08-03-at-23.37.33-150x150.png" class="attachment-thumbnail wp-post-image" alt="BigDeal" title="BigDeal" style="float:right;" />Description: The best deals in your town. Work: HTML/CSS, Krustr° Content Framework, payment gateway, newsletter system In collaboration with Fulspectrum Status: online]]></description>
			<content:encoded><![CDATA[<img width="150" height="150" src="http://creolab.hr/wp-content/uploads/2011/08/Screen-Shot-2011-08-03-at-23.37.33-150x150.png" class="attachment-thumbnail wp-post-image" alt="BigDeal" title="BigDeal" style="float:right;" /><p><strong>Description:</strong> The best deals in your town.</p>
<p><strong>Work:</strong> HTML/CSS, Krustr° Content Framework, payment gateway, newsletter system<br />
In collaboration with <a href="http://www.fulspectrum.si/" target="_blank">Fulspectrum</a></p>
<p><strong>Status:</strong> <a href="http://www.bigdeal.si/" target="_blank">online</a></p>
]]></content:encoded>
			<wfw:commentRss>http://creolab.hr/2010/09/bigdeal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Human Rights Film Festival</title>
		<link>http://creolab.hr/2009/12/human-rights-film-festival/</link>
		<comments>http://creolab.hr/2009/12/human-rights-film-festival/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 13:41:11 +0000</pubDate>
		<dc:creator>Boris Strahija</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Spotlight]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://creolab.hr/?p=95</guid>
		<description><![CDATA[<img width="150" height="150" src="http://creolab.hr/wp-content/uploads/2011/08/Screen-Shot-2011-08-09-at-15.40.40-150x150.png" class="attachment-thumbnail wp-post-image" alt="Human Rights Film Festival" title="Human Rights Film Festival" style="float:right;" />Description: Human Rights Film Festival in Zagreb. Work: HTML/CSS, WordPress integration. In collaboration with Keith Rosson and 5L081CH.6R4PH1C5 Status: online]]></description>
			<content:encoded><![CDATA[<img width="150" height="150" src="http://creolab.hr/wp-content/uploads/2011/08/Screen-Shot-2011-08-09-at-15.40.40-150x150.png" class="attachment-thumbnail wp-post-image" alt="Human Rights Film Festival" title="Human Rights Film Festival" style="float:right;" /><p><strong>Description:</strong> Human Rights Film Festival in Zagreb.</p>
<p><strong>Work:</strong> HTML/CSS, WordPress integration.<br />
In collaboration with <a href="http://www.keithrosson.com/" target="_blank">Keith Rosson</a> and 5L081CH.6R4PH1C5</p>
<p><strong>Status:</strong> <a href="http://humanrightsfestival.org/" target="_blank">online</a></p>
]]></content:encoded>
			<wfw:commentRss>http://creolab.hr/2009/12/human-rights-film-festival/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Integration of RedBean ORM with CodeIgniter</title>
		<link>http://creolab.hr/2009/11/integration-of-redbean-orm-with-codeigniter/</link>
		<comments>http://creolab.hr/2009/11/integration-of-redbean-orm-with-codeigniter/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 21:55:04 +0000</pubDate>
		<dc:creator>Boris Strahija</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[orm]]></category>

		<guid isPermaLink="false">http://creolab.hr/?p=57</guid>
		<description><![CDATA[Updated version is up. Check it out! I still haven&#8217;t updated my work, so here&#8217;s something in the meantime. I&#8217;ve managed to successfuly integrate RedBean into the CodeIgniter PHP framework. I don&#8217;t think any additional explanation is necesary since it&#8217;s pretty simple and basic stuff. Here are the reuired steps: Download RedBean and put it [...]]]></description>
			<content:encoded><![CDATA[<h3>Updated version is up. <strong><a href="/2011/02/redbean-codeigniter-take-2/">Check it out!</a></strong></h3>
<p><del>I still haven&#8217;t updated my work, so here&#8217;s something in the meantime.</del></p>
<p><del>I&#8217;ve managed to successfuly integrate <a href="http://www.redbeanphp.com/">RedBean</a> into the <a href="http://codeigniter.com/">CodeIgniter</a> PHP framework. I don&#8217;t think any additional explanation is necesary since it&#8217;s pretty simple and basic stuff.</del></p>
<p><del>Here are the reuired steps:</del></p>
<ol>
<li>Download <a href="http://www.redbeanphp.com/">RedBean</a> and put it into /app/thirdparty/redbean/</li>
<li>Create a library (/app/libraries/redbean.php). The class shoud be called Redbean, and the __construct() function should look something like this:
<pre>$this-&gt;ci =&amp; 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-&gt;ci-&gt;rb = $toolbox-&gt;getRedBean();</pre>
</li>
<li>Your controllers can then do some fun stuff like this:
<pre>$post = $this-&gt;rb-&gt;dispense("post");
$post-&gt;title = 'My first post from CodeIgniter';
$post-&gt;body ='Lorem ipsum dolor sit amet, consectetur adipisicing elit....';
$post-&gt;created = time();
$id = $this-&gt;rb-&gt;store($post);</pre>
</li>
</ol>
<p>Haven’t tested it much but everything seems to work.<br />
If someone has a better sollution just let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://creolab.hr/2009/11/integration-of-redbean-orm-with-codeigniter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

