<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	>
<channel>
	<title>Comments on: Multiple DBs in CakePHP</title>
	<atom:link href="http://recurser.com/articles/2007/06/04/multiple-dbs-in-cakephp/feed/" rel="self" type="application/rss+xml" />
	<link>http://recurser.com/articles/2007/06/04/multiple-dbs-in-cakephp/</link>
	<description></description>
	<pubDate>Wed, 07 Jan 2009 04:41:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Lane</title>
		<link>http://recurser.com/articles/2007/06/04/multiple-dbs-in-cakephp/comment-page-1/#comment-914</link>
		<dc:creator>Lane</dc:creator>
		<pubDate>Mon, 01 Dec 2008 06:41:17 +0000</pubDate>
		<guid isPermaLink="false">http://recurser.com/articles/2007/06/04/multiple-dbs-in-cakephp/#comment-914</guid>
		<description>I had to make a few changes to to some of the code you posted because I am using CakePHP 1.2RC3.  Had to add session_start(); to the bootstrap to be able to access $_SESSION from the model as well, but I finally got it working smoothly.  Thank you very much!!</description>
		<content:encoded><![CDATA[<p>I had to make a few changes to to some of the code you posted because I am using CakePHP 1.2RC3.  Had to add session_start(); to the bootstrap to be able to access $_SESSION from the model as well, but I finally got it working smoothly.  Thank you very much!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lane</title>
		<link>http://recurser.com/articles/2007/06/04/multiple-dbs-in-cakephp/comment-page-1/#comment-913</link>
		<dc:creator>Lane</dc:creator>
		<pubDate>Sun, 30 Nov 2008 07:14:06 +0000</pubDate>
		<guid isPermaLink="false">http://recurser.com/articles/2007/06/04/multiple-dbs-in-cakephp/#comment-913</guid>
		<description>Hello, this article helps me out a ton.  Thanks, I need to do something similar.  However I'm having problems accessing $_SESSION from app_model.  I created app_model.php in my app root folder and it has similar contents to your mmkmodel, but for some reason it is telling me $_SESSION is an undefined variable.  Any ideas?  I can access $_SESSION fine from controllers.</description>
		<content:encoded><![CDATA[<p>Hello, this article helps me out a ton.  Thanks, I need to do something similar.  However I&#8217;m having problems accessing $_SESSION from app_model.  I created app_model.php in my app root folder and it has similar contents to your mmkmodel, but for some reason it is telling me $_SESSION is an undefined variable.  Any ideas?  I can access $_SESSION fine from controllers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dave</title>
		<link>http://recurser.com/articles/2007/06/04/multiple-dbs-in-cakephp/comment-page-1/#comment-896</link>
		<dc:creator>dave</dc:creator>
		<pubDate>Thu, 02 Oct 2008 10:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://recurser.com/articles/2007/06/04/multiple-dbs-in-cakephp/#comment-896</guid>
		<description>Thanks Justin!</description>
		<content:encoded><![CDATA[<p>Thanks Justin!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://recurser.com/articles/2007/06/04/multiple-dbs-in-cakephp/comment-page-1/#comment-155</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Wed, 25 Jun 2008 13:16:02 +0000</pubDate>
		<guid isPermaLink="false">http://recurser.com/articles/2007/06/04/multiple-dbs-in-cakephp/#comment-155</guid>
		<description>Ok what i finally came up with works perfect, I didn't need dynamic models names like you so It didn't need to be quiet as complex but here was my problem.  I've got a Master to many Slave topology.  The master is in the clients HQ the slaves are in the remote offices.  We set them up two applications one is very write intensive as it does a LOT of logging so it needs to write to the master - dB A well call it, the other application is a real-time web gui that can control the other application and being real-time and it reads the info for ALL the branches and HQ it's very read intensive, we'll call it dB B.  When the network goes down I then need to read and write to yet again another local dB C (a temp dB).  So here we go with what sounds to be a very complex problem (i spent days coming up with this) first of all Cake 1.1.19 bug: you have to define default in databases.php and if default goes down your application will break (so you should always run a dB on your application box with a dummy dB to appease Cake).  Ok so now to the code in my model I added a method based on model_php5.php

        function changeDataSource($newSource)
        {
                parent::setDataSource($newSource);
        }

then in my controller:

     $db = ConnectionManager::getInstance();
     $connected = $db-&#62;getDataSource('master');

     $connectionTest = $connected-&#62;isConnected();

     if($connectionTest == true)
     {
          $write_dB = 'master';
          $read_dB = 'slave';
     }else{
          $write_dB = $read_dB = 'scratch';
     }

     // CHANGE TO THE WRITE (MASTER) dB
     $this-&#62;Test-&#62;changeDataSource($write_dB);
     $temp = $this-&#62;Test-&#62;findAll();
     echo "This would be the database we are writing to: ";
     echo var_dump($temp);
     echo "";

     // CHANGE TO THE READ (SLAVE) dB
     $this-&#62;Test-&#62;changeDataSource($read_dB);
     $temp = $this-&#62;Test-&#62;findAll();
     echo "This would be the database we are reading from: ";
     echo var_dump($temp);

works beautiful is my primary write server goes down everything switches to my scratch dB and while everything is working good I have access to use both my write and read configs on will just by dynamically changing the datasource.  I know that would have solved your problem dave as yours needed much more dynamic complexity but mine solves most peoples multi-dB type questions (at least I think)</description>
		<content:encoded><![CDATA[<p>Ok what i finally came up with works perfect, I didn&#8217;t need dynamic models names like you so It didn&#8217;t need to be quiet as complex but here was my problem.  I&#8217;ve got a Master to many Slave topology.  The master is in the clients HQ the slaves are in the remote offices.  We set them up two applications one is very write intensive as it does a <span class="caps">LOT</span> of logging so it needs to write to the master &#8211; dB A well call it, the other application is a real-time web gui that can control the other application and being real-time and it reads the info for <span class="caps">ALL</span> the branches and HQ it&#8217;s very read intensive, we&#8217;ll call it dB B.  When the network goes down I then need to read and write to yet again another local dB C (a temp dB).  So here we go with what sounds to be a very complex problem (i spent days coming up with this) first of all Cake 1.1.19 bug: you have to define default in databases.php and if default goes down your application will break (so you should always run a dB on your application box with a dummy dB to appease Cake).  Ok so now to the code in my model I added a method based on model_php5.php</p>
<p>        function changeDataSource($newSource)<br />
        {<br />
                parent::setDataSource($newSource);<br />
        }</p>
<p>then in my controller:</p>
<p>     $db = ConnectionManager::getInstance();<br />
     $connected = $db-&gt;getDataSource(&#8216;master&#8217;);</p>
<p>     $connectionTest = $connected-&gt;isConnected();</p>
<p>     if($connectionTest == true)<br />
     {<br />
          $write_dB = &#8216;master&#8217;;<br />
          $read_dB = &#8216;slave&#8217;;<br />
     }else{<br />
          $write_dB = $read_dB = &#8216;scratch&#8217;;<br />
     }</p>
<p>     // <span class="caps">CHANGE</span> TO <span class="caps">THE</span> <span class="caps">WRITE</span> (<span class="caps">MASTER</span>) dB<br />
     $this-&gt;Test-&gt;changeDataSource($write_dB);<br />
     $temp = $this-&gt;Test-&gt;findAll();<br />
     echo &#8220;This would be the database we are writing to: &#8220;;<br />
     echo var_dump($temp);<br />
     echo &#8220;&#8221;;</p>
<p>     // <span class="caps">CHANGE</span> TO <span class="caps">THE</span> <span class="caps">READ</span> (<span class="caps">SLAVE</span>) dB<br />
     $this-&gt;Test-&gt;changeDataSource($read_dB);<br />
     $temp = $this-&gt;Test-&gt;findAll();<br />
     echo &#8220;This would be the database we are reading from: &#8220;;<br />
     echo var_dump($temp);</p>
<p>works beautiful is my primary write server goes down everything switches to my scratch dB and while everything is working good I have access to use both my write and read configs on will just by dynamically changing the datasource.  I know that would have solved your problem dave as yours needed much more dynamic complexity but mine solves most peoples multi-dB type questions (at least I think)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://recurser.com/articles/2007/06/04/multiple-dbs-in-cakephp/comment-page-1/#comment-154</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Tue, 24 Jun 2008 12:34:54 +0000</pubDate>
		<guid isPermaLink="false">http://recurser.com/articles/2007/06/04/multiple-dbs-in-cakephp/#comment-154</guid>
		<description>For those of you who are looking for automatic dB failover putting this code in your models and following the names that you set up in databases.php will provide such.

class Test extends AppModel
{
        var $name = 'Test';

        function __construct()
        {
                $table = Inflector::tableize($this-&#62;name);
                $db = ConnectionManager::getInstance();
                $connected = $db-&#62;getDataSource('default');
                if($connected-&#62;isConnected() == true)
                {
                        $ds = 'default';
                }else{
                        $ds = 'test';
                }
                parent::__construct(false, $table, $ds);
        }

}</description>
		<content:encoded><![CDATA[<p>For those of you who are looking for automatic dB failover putting this code in your models and following the names that you set up in databases.php will provide such.</p>
<p>class Test extends AppModel<br />
{<br />
        var $name = &#8216;Test&#8217;;</p>
<p>        function __construct()<br />
        {<br />
                $table = Inflector::tableize($this-&gt;name);<br />
                $db = ConnectionManager::getInstance();<br />
                $connected = $db-&gt;getDataSource(&#8216;default&#8217;);<br />
                if($connected-&gt;isConnected() == true)<br />
                {<br />
                        $ds = &#8216;default&#8217;;<br />
                }else{<br />
                        $ds = &#8216;test&#8217;;<br />
                }<br />
                parent::__construct(false, $table, $ds);<br />
        }</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://recurser.com/articles/2007/06/04/multiple-dbs-in-cakephp/comment-page-1/#comment-153</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Mon, 23 Jun 2008 18:41:15 +0000</pubDate>
		<guid isPermaLink="false">http://recurser.com/articles/2007/06/04/multiple-dbs-in-cakephp/#comment-153</guid>
		<description>Yes you're on the right solution track with this one.  I'm trying to solve a very similar problem atm.  I've got two databases one is a failover and instead of the session based stuff that you have here I need it to check to see if the main one (off site) is up and if it's not then fail over to the backup (localhost).  I'm pretty sure your solution will solve my problem once I figure out exactly what your doing here.</description>
		<content:encoded><![CDATA[<p>Yes you&#8217;re on the right solution track with this one.  I&#8217;m trying to solve a very similar problem atm.  I&#8217;ve got two databases one is a failover and instead of the session based stuff that you have here I need it to check to see if the main one (off site) is up and if it&#8217;s not then fail over to the backup (localhost).  I&#8217;m pretty sure your solution will solve my problem once I figure out exactly what your doing here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kunthar</title>
		<link>http://recurser.com/articles/2007/06/04/multiple-dbs-in-cakephp/comment-page-1/#comment-20</link>
		<dc:creator>Kunthar</dc:creator>
		<pubDate>Mon, 12 Nov 2007 06:50:34 +0000</pubDate>
		<guid isPermaLink="false">http://recurser.com/articles/2007/06/04/multiple-dbs-in-cakephp/#comment-20</guid>
		<description>Youre surely right after this explanation. Take cake, bro ;)</description>
		<content:encoded><![CDATA[<p>Youre surely right after this explanation. Take cake, bro ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dave</title>
		<link>http://recurser.com/articles/2007/06/04/multiple-dbs-in-cakephp/comment-page-1/#comment-19</link>
		<dc:creator>dave</dc:creator>
		<pubDate>Thu, 08 Nov 2007 15:05:09 +0000</pubDate>
		<guid isPermaLink="false">http://recurser.com/articles/2007/06/04/multiple-dbs-in-cakephp/#comment-19</guid>
		<description>Hi Kunthar, thanks for the feedback :) The point of this approach is that you can have a single model access different DBs at runtime depending on who the logged-in user is - this isn't possible by editing database.php. Say I've got an online timesheet application (for example) that tracks employee times for 20 different companies, with a separate database for each company. I want my application to use a 'times' table to look up the times, but the table is in a different database depending on what company the logged-in user works for. With this technique the 'times.php' model can decide which database to look up at runtime. I can't see any way to achieve this using database.php.</description>
		<content:encoded><![CDATA[<p>Hi Kunthar, thanks for the feedback :) The point of this approach is that you can have a single model access different DBs at runtime depending on who the logged-in user is &#8211; this isn&#8217;t possible by editing database.php. Say I&#8217;ve got an online timesheet application (for example) that tracks employee times for 20 different companies, with a separate database for each company. I want my application to use a &#8216;times&#8217; table to look up the times, but the table is in a different database depending on what company the logged-in user works for. With this technique the &#8216;times.php&#8217; model can decide which database to look up at runtime. I can&#8217;t see any way to achieve this using database.php.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kunthar</title>
		<link>http://recurser.com/articles/2007/06/04/multiple-dbs-in-cakephp/comment-page-1/#comment-18</link>
		<dc:creator>Kunthar</dc:creator>
		<pubDate>Thu, 08 Nov 2007 07:26:55 +0000</pubDate>
		<guid isPermaLink="false">http://recurser.com/articles/2007/06/04/multiple-dbs-in-cakephp/#comment-18</guid>
		<description>Hey bro,

I couldn't get your point.
You know db names in every create operation, right?
If this is the situation, it would be quite better, open database.php add for added db and known parameters as db names and close to file :D
When db dropped, you could drop the records from database.php.
Anyway, your way is a way too :)</description>
		<content:encoded><![CDATA[<p>Hey bro,</p>
<p>I couldn&#8217;t get your point.<br />
You know db names in every create operation, right?<br />
If this is the situation, it would be quite better, open database.php add for added db and known parameters as db names and close to file :D<br />
When db dropped, you could drop the records from database.php.<br />
Anyway, your way is a way too :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dave</title>
		<link>http://recurser.com/articles/2007/06/04/multiple-dbs-in-cakephp/comment-page-1/#comment-15</link>
		<dc:creator>dave</dc:creator>
		<pubDate>Fri, 24 Aug 2007 17:00:49 +0000</pubDate>
		<guid isPermaLink="false">http://recurser.com/articles/2007/06/04/multiple-dbs-in-cakephp/#comment-15</guid>
		<description>thanks for the feedback joren - defining multiple DB connections is definitely the way to go if you have a finite number of databases, and i would do it in a heartbeat if it could solve my particular problem. In the system i'm working on, every customer has their own DB, and i was trying to come up with a way to avoid adding a new entry to the database.php file every time a new customer was added. I think we're solving different problems here :)</description>
		<content:encoded><![CDATA[<p>thanks for the feedback joren &#8211; defining multiple DB connections is definitely the way to go if you have a finite number of databases, and i would do it in a heartbeat if it could solve my particular problem. In the system i&#8217;m working on, every customer has their own DB, and i was trying to come up with a way to avoid adding a new entry to the database.php file every time a new customer was added. I think we&#8217;re solving different problems here :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joren</title>
		<link>http://recurser.com/articles/2007/06/04/multiple-dbs-in-cakephp/comment-page-1/#comment-12</link>
		<dc:creator>joren</dc:creator>
		<pubDate>Tue, 14 Aug 2007 22:14:46 +0000</pubDate>
		<guid isPermaLink="false">http://recurser.com/articles/2007/06/04/multiple-dbs-in-cakephp/#comment-12</guid>
		<description>hey,

i have tried to implement your extended model, but it does not work...

but i have found another way, which is much easier than alot of people might think.

step 1.
edit app\config\database.php
------------------------------------------
 var $default = array('driver' =&#62; 'mysql',
    'connect' =&#62; 'mysql_connect',
    'host' =&#62; 'localhost',
    'login' =&#62; 'USER1',
    'password' =&#62; 'PASS1',
    'database' =&#62; 'DB1',
    'prefix' =&#62; '');

  var $usersettings = array('driver' =&#62; 'mysql',
    'connect' =&#62; 'mysql_connect',
    'host' =&#62; 'localhost',
    'login' =&#62; 'USER2',
    'password' =&#62; 'PASS2',
    'database' =&#62; 'DB2',
    'prefix' =&#62; '');

------------------------------------------
 
step 2.
make a controller called app\controller\v1_controller.php

------------------------------------------
set('user',$this-&#62;V1-&#62;find('User.username = $USERNAME'), array('User.*', $order='',0));
   $this-&#62;set('usersettings',$this-&#62;UserSetting-&#62;find('UserSetting.username = $USERNAME" , array("UserSetting.*"), $order='', 0));
  }
 
 }
?&#62;
------------------------------------------

step 3.
make another controller called app\controller\user_settings_controller.php
------------------------------------------

------------------------------------------

step 4.
make the model called app\model\v1.php
------------------------------------------

------------------------------------------

step 5.
make the model called app\model\user_setting.php
------------------------------------------

------------------------------------------

step 6.
make the views for v1 in app\views\v1\index.thtml
------------------------------------------


that is all folks, now you have the following :
from within 1 controller, you access to another controller, which is accessing another DB! How cool is this?

this should get you guys going .....</description>
		<content:encoded><![CDATA[<p>hey,</p>
<p>i have tried to implement your extended model, but it does not work&#8230;</p>
<p>but i have found another way, which is much easier than alot of people might think.</p>
<p>step 1.<br />
edit app\config\database.php<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
 var $default = array(&#8216;driver&#8217; =&gt; &#8216;mysql&#8217;,<br />
    &#8216;connect&#8217; =&gt; &#8216;mysql_connect&#8217;,<br />
    &#8216;host&#8217; =&gt; &#8216;localhost&#8217;,<br />
    &#8216;login&#8217; =&gt; &#8216;USER1&#8217;,<br />
    &#8216;password&#8217; =&gt; &#8216;PASS1&#8217;,<br />
    &#8216;database&#8217; =&gt; &#8216;DB1&#8217;,<br />
    &#8216;prefix&#8217; =&gt; &#8216;&#8217;);</p>
<p>  var $usersettings = array(&#8216;driver&#8217; =&gt; &#8216;mysql&#8217;,<br />
    &#8216;connect&#8217; =&gt; &#8216;mysql_connect&#8217;,<br />
    &#8216;host&#8217; =&gt; &#8216;localhost&#8217;,<br />
    &#8216;login&#8217; =&gt; &#8216;USER2&#8217;,<br />
    &#8216;password&#8217; =&gt; &#8216;PASS2&#8217;,<br />
    &#8216;database&#8217; =&gt; &#8216;DB2&#8217;,<br />
    &#8216;prefix&#8217; =&gt; &#8216;&#8217;);</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>step 2.<br />
make a controller called app\controller\v1_controller.php</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
set(&#8216;user&#8217;,$this-&gt;V1-&gt;find(&#8216;User.username = $USERNAME&#8217;), array(&#8216;User.*&#8217;, $order=&#8217;&#8216;,0));<br />
   $this-&gt;set(&#8216;usersettings&#8217;,$this-&gt;UserSetting-&gt;find(&#8216;UserSetting.username = $USERNAME&#8221; , array(&#8220;UserSetting.*&#8221;), $order=&#8217;&#8216;, 0));<br />
  }</p>
<p> }<br />
?&gt;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>step 3.<br />
make another controller called app\controller\user_settings_controller.php<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>step 4.<br />
make the model called app\model\v1.php<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>step 5.<br />
make the model called app\model\user_setting.php<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>step 6.<br />
make the views for v1 in app\views\v1\index.thtml<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>that is all folks, now you have the following :<br />
from within 1 controller, you access to another controller, which is accessing another DB! How cool is this?</p>
<p>this should get you guys going &#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joren</title>
		<link>http://recurser.com/articles/2007/06/04/multiple-dbs-in-cakephp/comment-page-1/#comment-11</link>
		<dc:creator>joren</dc:creator>
		<pubDate>Tue, 14 Aug 2007 10:53:25 +0000</pubDate>
		<guid isPermaLink="false">http://recurser.com/articles/2007/06/04/multiple-dbs-in-cakephp/#comment-11</guid>
		<description>this looks great, actually exactly what i need for my app.

tonight i will implement this and let you know if i have it working or not ;)</description>
		<content:encoded><![CDATA[<p>this looks great, actually exactly what i need for my app.</p>
<p>tonight i will implement this and let you know if i have it working or not ;)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
