<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:admin="http://webns.net/mvcb/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:content="http://purl.org/rss/1.0/modules/content/">
    
    <channel>
    
    <title>CodeIgniter Forums</title>
    <link>http://codeigniter.com/forums/</link>
    <description>CodeIgniter Forums</description>
    <dc:language>en</dc:language>
    <dc:rights>Copyright 2008</dc:rights>
    <dc:date>2008-09-05T13:20:51-06:00</dc:date>
    <admin:generatorAgent rdf:resource="http://www.pmachine.com/" />
    

    <item>
      <title>$this&#45;&amp;gt;config&#45;&amp;gt;item( &#8230; ) default values</title>
      <link>http://codeigniter.com/forums/viewthread/89389/</link>
      <guid>http://codeigniter.com/forums/viewthread/89389/#When:18:21:48Z</guid>
      <description>&lt;p&gt;When I try to get the configuration for something like
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;
&lt;span style=&quot;color: #0000BB&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;config&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;item&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#39;cache_path&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/div&gt;&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
I get an empty string unless it has been explicitly set in the config.php file. I think it would be more convenient if the default config value was returned. (In this case, &#8216;system/cache/&#8217; .)
&lt;/p&gt;</description>
      <dc:date>2008-08-27T18:21:48-06:00</dc:date>
    </item>

    <item>
      <title>Add checks for PHP version 6 before magic_quotes</title>
      <link>http://codeigniter.com/forums/viewthread/87777/</link>
      <guid>http://codeigniter.com/forums/viewthread/87777/#When:16:28:54Z</guid>
      <description>&lt;p&gt;PHP 6 lacks the magic_quotes methods, so here are the changes I&#8217;ve made to my CI install to make it run flawlessly on PHP 6:
&lt;/p&gt;
&lt;p&gt;
codeigniter/CodeIgniter.php, line 60:
&lt;br /&gt;
&lt;/p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;
&lt;span style=&quot;color: #0000BB&quot;&gt;set_magic_quotes_runtime&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// Kill magic quotes&lt;br /&gt;&lt;br /&gt;// to&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;floor&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;phpversion&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;()) &amp;lt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#123;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set_magic_quotes_runtime&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// Kill magic quotes&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#125;&lt;/span&gt;
&lt;/code&gt;&lt;/div&gt;&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
libraries/Input.php, line 173:
&lt;br /&gt;
&lt;/p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;
&lt;span style=&quot;color: #007700&quot;&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;get_magic_quotes_gpc&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;())&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#123;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// to&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;floor&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;phpversion&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;()) &amp;lt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;6 &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;amp;&amp;amp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;get_magic_quotes_gpc&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;())&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#123;&lt;/span&gt;
&lt;/code&gt;&lt;/div&gt;&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
It would be nice if this small change can be added to CodeIgniter, just to simplify when testing on PHP6 (and for the future &lt;img src=&quot;http://ellislab.com/images/smileys/smile.gif&quot; width=&quot;19&quot; height=&quot;19&quot; alt=&quot;smile&quot; style=&quot;border:0;&quot; /&gt; ).
&lt;/p&gt;</description>
      <dc:date>2008-08-09T16:28:54-06:00</dc:date>
    </item>

    <item>
      <title>tabindex on forum login form</title>
      <link>http://codeigniter.com/forums/viewthread/90148/</link>
      <guid>http://codeigniter.com/forums/viewthread/90148/#When:03:40:44Z</guid>
      <description>&lt;p&gt;There&#8217;s no tabindex on the little login form on the forums. It&#8217;s no that big of a deal, but it would be handy!
&lt;/p&gt;
&lt;p&gt;
Also, a tabindex on the title and message fields when posting a new topic would be cool. It would make a lazy tabbing man&#8217;s life easier!
&lt;/p&gt;</description>
      <dc:date>2008-09-05T03:40:44-06:00</dc:date>
    </item>

    <item>
      <title>REST &amp;amp; SOAP Libraries</title>
      <link>http://codeigniter.com/forums/viewthread/90124/</link>
      <guid>http://codeigniter.com/forums/viewthread/90124/#When:17:19:08Z</guid>
      <description>&lt;p&gt;Please add core libraries for REST and SOAP. I use the XML&#45;RPC library all the time and love it, only problem I run into is when I try to integrate with other Web APIs they are almost always REST or SOAP.
&lt;/p&gt;</description>
      <dc:date>2008-09-04T17:19:08-06:00</dc:date>
    </item>

    <item>
      <title>AR library : alternative to caching sql statement building methods</title>
      <link>http://codeigniter.com/forums/viewthread/90036/</link>
      <guid>http://codeigniter.com/forums/viewthread/90036/#When:03:55:36Z</guid>
      <description>&lt;p&gt;I just something like this
&lt;br /&gt;
&lt;/p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;
&lt;span style=&quot;color: #007700&quot;&gt;if(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;something&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#123;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$id &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;db&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;select&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#39;id&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;where&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$something&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#39;table&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;()&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;row&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;()&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;db&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;where&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$something&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#125;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#123;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$id &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;uri&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;segment&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;db&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;where&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#39;id&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#125;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;db&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#39;table&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;db&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;delete&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// ...&lt;/span&gt;
&lt;/code&gt;&lt;/div&gt;&lt;p&gt;
This because i couldn&#8217;t use caching on the where and from method parameters at the same time. So i started thinking what if i could do
&lt;br /&gt;
&lt;/p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;
&lt;span style=&quot;color: #0000BB&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;db&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#39;table&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;something&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#123;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$id &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;db&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;select&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#39;id&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;where&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$something&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;()&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;row&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;()&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#125;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#123;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$id &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;uri&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;segment&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;db&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;where&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#39;id&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#125;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;db&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;delete&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// ...&lt;/span&gt;
&lt;/code&gt;&lt;/div&gt;&lt;p&gt;
The select would be disregarded but the where data would be used by the delete method. I browsed through the AR code and i found out that the delete method has a delete_data flag. Maybe this should be possible for all methods that reset the sql statement data.
&lt;/p&gt;
&lt;p&gt;
The simplest solution is to add a 
&lt;br /&gt;
&lt;/p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;
&lt;span style=&quot;color: #007700&quot;&gt;var &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;reset_data &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;TRUE&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/div&gt;&lt;p&gt;
class variable. Then my &#8216;perfect&#8217; code will be 
&lt;br /&gt;
&lt;/p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;
&lt;span style=&quot;color: #0000BB&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;db&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#39;table&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;something&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#123;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;db&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;reset_data &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;FALSE&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;db&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;select&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#39;id&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;where&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$something&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;()&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;row&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;()&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;db&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;reset_data &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;TRUE&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#125;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#123;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$id &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;uri&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;segment&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;db&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;where&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#39;id&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#125;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;db&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;delete&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// ...&lt;/span&gt;
&lt;/code&gt;&lt;/div&gt;&lt;p&gt; 
&lt;br /&gt;
And in the methods all you need to do to make this work for all those resetting methods is
&lt;br /&gt;
&lt;/p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;
&lt;span style=&quot;color: #007700&quot;&gt;if(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;reset_data&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#123;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;_reset_select&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;();&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#125;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// or&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;reset_data&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#123;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&#45;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;_reset_write&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;();&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#125;&lt;/span&gt;
&lt;/code&gt;&lt;/div&gt;&lt;p&gt;
This is also a solution that is backward compatible.
&lt;/p&gt;</description>
      <dc:date>2008-09-04T03:55:36-06:00</dc:date>
    </item>

    <item>
      <title>FirePHP&#63;</title>
      <link>http://codeigniter.com/forums/viewthread/89666/</link>
      <guid>http://codeigniter.com/forums/viewthread/89666/#When:16:08:41Z</guid>
      <description>&lt;p&gt;This may just be me, but I&#8217;ve find a nice little add on for FireBug called FirePHP. People may&#8217;ve heard of it and may use it, but for those who haven&#8217;t, here&#8217;s the link: http://www.firephp.org/
&lt;/p&gt;
&lt;p&gt;
It allows you to echo out debug messages without affecting the body of the page as it&#8217;s done in the headers.
&lt;/p&gt;
&lt;p&gt;
It&#8217;ll be cool if this is added as a plugin to codeignitor as it&#8217;s really handy.
&lt;/p&gt;</description>
      <dc:date>2008-08-30T16:08:41-06:00</dc:date>
    </item>

    <item>
      <title>HTML helper doctype function</title>
      <link>http://codeigniter.com/forums/viewthread/89776/</link>
      <guid>http://codeigniter.com/forums/viewthread/89776/#When:09:29:21Z</guid>
      <description>&lt;p&gt;Hello everyone at Codeigniter forums, I&#8217;m new here.
&lt;/p&gt;
&lt;p&gt;
All I wanted to say that it would be nice to have a helper function in the HTML helper that would generate the doctype. I know, it may sound silly, but no one learns it by heart, and every time you start a new html file that needs a doctype, you go to a website to copy the doctype. Wouldn&#8217;t it be easier by just typing 
&lt;br /&gt;
&lt;/p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;
&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;doctype&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#39;xhtml&#45;strict&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/div&gt;&lt;p&gt; or something like that?
&lt;br /&gt;
I know the function is a piece of cake and you might say: &#8220;why don&#8217;t you do your own?&#8221;. Of course I can do it, but why wouldn&#8217;t it benefit all of us?
&lt;/p&gt;</description>
      <dc:date>2008-09-01T09:29:21-06:00</dc:date>
    </item>

    <item>
      <title>Multiple DB Support &#45; Session Class Request (attached)</title>
      <link>http://codeigniter.com/forums/viewthread/89886/</link>
      <guid>http://codeigniter.com/forums/viewthread/89886/#When:15:19:48Z</guid>
      <description>&lt;p&gt;@Rick &amp;amp; Dereks&#8212;Please consider this change to the Session class as a supplement to the other improvements you&#8217;re making.&amp;nbsp; Allow the Session data to be stored in a DB based upon an additional config item setting that identifies the database group that will receive the the session data. 
&lt;/p&gt;
&lt;p&gt;
New config entry: $config[&#8217;sess_database_group&#8217;] = &#8216;db_group&#8217;; 
&lt;/p&gt;
&lt;p&gt;
A simple change really to go along with the file changes attached.
&lt;/p&gt;
&lt;p&gt;
RATIONALE:&amp;nbsp; There are a couple of primary reasons and a dozen or so that don&#8217;t really matter. The two reasons that make the biggest difference:
&lt;/p&gt;
&lt;p&gt;
1) Convention is that user credentials be stored independently of application data. The DB query stuff is hard coded in the session class so that it can only be stored in the &#8216;default&#8217; or user loaded DB if they specify the group at load time.&amp;nbsp; The convention would have the authentication session stored with the user authentication data as an option for the developer at a minimum.
&lt;/p&gt;
&lt;p&gt;
2) CI supports multiple DBs, so should the API at the core.
&lt;/p&gt;
&lt;p&gt;
&#45;&#45;&#45;&#45;&#45;&#45;
&lt;/p&gt;
&lt;p&gt;
You&#8217;ll see the changes are quite simple.&amp;nbsp; I&#8217;ve set them off with &#45;&amp;gt; at column 0 of the file so your syntax highter should have no trouble finding the changes &lt;img src=&quot;http://ellislab.com/images/smileys/wink.gif&quot; width=&quot;19&quot; height=&quot;19&quot; alt=&quot;wink&quot; style=&quot;border:0;&quot; /&gt;.&amp;nbsp; Yes, I&#8217;ve pretty much had to extend the entire class to do this...time to move along.
&lt;/p&gt;
&lt;p&gt;
Please let me know if you have any questions.
&lt;/p&gt;
&lt;p&gt;
If you want to go forward, let me know and I&#8217;ll push this over to the bug reports.
&lt;/p&gt;
&lt;p&gt;
Thanks for listening.
&lt;/p&gt;
&lt;p&gt;
Randy
&lt;/p&gt;</description>
      <dc:date>2008-09-02T15:19:48-06:00</dc:date>
    </item>

    <item>
      <title>Redirect</title>
      <link>http://codeigniter.com/forums/viewthread/89809/</link>
      <guid>http://codeigniter.com/forums/viewthread/89809/#When:18:45:17Z</guid>
      <description>&lt;p&gt;Hello,
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;
&lt;span style=&quot;color: #0000BB&quot;&gt;redirect&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/div&gt;&lt;p&gt; should include a new parameter (4th) which can redirect to external websites.
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;
&lt;span style=&quot;color: #007700&quot;&gt;if ( ! &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;function_exists&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#39;redirect&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;))&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#123;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;function &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;redirect&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$uri &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$method &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#39;location&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$http_response_code &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;302&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$external &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#123;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$external &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;== &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#123;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;header&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Refresh:0;url=&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$uri&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#125;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;switch(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$method&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#123;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;case &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#39;refresh&#39;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;header&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Refresh:0;url=&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;site_url&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$uri&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;break;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;default&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;header&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Location: &quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;site_url&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$uri&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;), &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;TRUE&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$http_response_code&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;break;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#125;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;exit;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#125;&lt;br /&gt;&#125;&lt;/span&gt;
&lt;/code&gt;&lt;/div&gt;&lt;p&gt;
&lt;/p&gt;</description>
      <dc:date>2008-09-01T18:45:17-06:00</dc:date>
    </item>

    <item>
      <title>Extending helpers with multiple files</title>
      <link>http://codeigniter.com/forums/viewthread/89774/</link>
      <guid>http://codeigniter.com/forums/viewthread/89774/#When:09:19:25Z</guid>
      <description>&lt;p&gt;Instead of searching for only one file to extend the helper
&lt;br /&gt;
&lt;/p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;
&lt;span style=&quot;color: #0000BB&quot;&gt;$ext_helper &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;APPPATH&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#39;helpers/&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;config_item&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#39;subclass_prefix&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;).&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$helper&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;EXT&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// Is this a helper extension request?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;file_exists&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ext_helper&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;))&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#123;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$base_helper &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;BASEPATH&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#39;helpers/&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$helper&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;EXT&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if ( ! &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;file_exists&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$base_helper&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#123;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;show_error&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#39;Unable to load the requested file: helpers/&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$helper&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;EXT&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#125;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;include_once(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ext_helper&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;include_once(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$base_helper&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#125;&lt;/span&gt;
&lt;/code&gt;&lt;/div&gt;&lt;p&gt;
Search for multiple files
&lt;br /&gt;
&lt;/p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;
&lt;span style=&quot;color: #0000BB&quot;&gt;$ext_helpers &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;glob&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;APPPATH&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#39;helpers/&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;substr&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;config_item&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#39;subclass_prefix&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;),&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&#45;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;).&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#39;*&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$helper&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;EXT&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// Is this a helper extension request?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;count&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ext_helpers&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) &amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#123;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$base_helper &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;BASEPATH&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#39;helpers/&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$helper&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;EXT&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if ( ! &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;file_exists&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$base_helper&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#123;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;show_error&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#39;Unable to load the requested file: helpers/&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$helper&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;EXT&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#125;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;foreach(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ext_helpers &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;as &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ext_helper&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#123;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;include_once(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ext_helper&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#125;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;include_once(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$base_helper&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&#125;&lt;/span&gt;
&lt;/code&gt;&lt;/div&gt;&lt;p&gt;
The great thing about this change is that you don&#8217;t have to merge extended helper files manually anymore. Another advantage is people who use extended helpers can add their own prefix to distinguish their extension from others: MY_auth1_url_helper.php, MY_auth2_url_helper.php, ...
&lt;/p&gt;
&lt;p&gt;
The dark side of the modification is the possibility functions have the same name in different files and thus creating an error when they are loaded.
&lt;/p&gt;
&lt;p&gt;
Comments are welcome.
&lt;/p&gt;</description>
      <dc:date>2008-09-01T09:19:25-06:00</dc:date>
    </item>

    
    </channel>
</rss>