<?xml version="1.0" encoding="utf-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">

    <title type="text">CodeIgniter Forums</title>
    <link rel="alternate" type="text/html" href="http://codeigniter.com/forums/" />
    <link rel="self" type="application/atom+xml" href="http://codeigniter.com/forums/atom/" />
    <updated></updated>
    <rights>Copyright (c) 2008</rights>
    <generator uri="http://www.pmachine.com/" version="1.6.3">ExpressionEngine</generator>
    <id>tag:codeigniter.com,2008:10:15</id>


    <entry>
      <title>Controllers and Views</title>
      <link rel="alternate" type="text/html" href="http://codeigniter.com/forums/viewthread/93961/" />      
      <id>tag:codeigniter.com,2008:forums/viewthread/.93961</id>
      <published>2008-10-15T12:05:23Z</published>
      <updated></updated>
      <author><name>NuclearArt</name></author>
      <content type="html">
      <![CDATA[
        <p>It might sound like a dumb question, but do I have to create a new controller and a view for that controller for every page of a site that I might build?&nbsp; I want to follow one template, and one controller for different views.&nbsp; Does it make sense?&nbsp; Can anyone help?</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>multiple views</title>
      <link rel="alternate" type="text/html" href="http://codeigniter.com/forums/viewthread/90724/" />      
      <id>tag:codeigniter.com,2008:forums/viewthread/.90724</id>
      <published>2008-09-11T00:49:46Z</published>
      <updated></updated>
      <author><name>home158</name></author>
      <content type="html">
      <![CDATA[
        <p>Hi everyone,<br />
When I load multiple views,like this.<br />
</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">load</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">view</span><span style="color: #007700">(</span><span style="color: #DD0000">'head'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">load</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">view</span><span style="color: #007700">(</span><span style="color: #DD0000">'foot'</span><span style="color: #007700">); </span>
</span>
</code></div><p><br />
It always show the last view &#8220;foot&#8221;, not &#8220;head&#8221; and &#8220;foot&#8221;.<br />
Do I forgot somethings?<br />
How could use multiple views in my system?</p>

<p>Thanks.</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Validation Custom Error Message Clarification</title>
      <link rel="alternate" type="text/html" href="http://codeigniter.com/forums/viewthread/93991/" />      
      <id>tag:codeigniter.com,2008:forums/viewthread/.93991</id>
      <published>2008-10-15T19:39:36Z</published>
      <updated></updated>
      <author><name>escape</name></author>
      <content type="html">
      <![CDATA[
        <p>I&#8217;ve got form validation working with the following abbreviated code from my controller:</p>

<p></p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">$rules&#91;</span><span style="color: #DD0000">'username'</span><span style="color: #0000BB">&#93; </span><span style="color: #007700">= </span><span style="color: #DD0000">"required|min_length&#91;4&#93;|max_length&#91;12&#93;"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$rules&#91;</span><span style="color: #DD0000">'password'</span><span style="color: #0000BB">&#93; </span><span style="color: #007700">= </span><span style="color: #DD0000">"required|min_length&#91;4&#93;|max_length&#91;12&#93;"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">validation</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">set_rules</span><span style="color: #007700">(</span><span style="color: #0000BB">$rules</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><br /></span><span style="color: #0000BB">$fields&#91;</span><span style="color: #DD0000">'username'</span><span style="color: #0000BB">&#93; </span><span style="color: #007700">= </span><span style="color: #DD0000">'Username'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$fields&#91;</span><span style="color: #DD0000">'password'</span><span style="color: #0000BB">&#93; </span><span style="color: #007700">= </span><span style="color: #DD0000">'Password'</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">validation</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">set_fields</span><span style="color: #007700">(</span><span style="color: #0000BB">$fields</span><span style="color: #007700">);<br /><br />if (</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">validation</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">run</span><span style="color: #007700">() == </span><span style="color: #0000BB">FALSE</span><span style="color: #007700">) <br /></span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">// display current view with validation error messages<br /></span><span style="color: #0000BB">&#125;<br /></span><span style="color: #007700">else <br /></span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">// check for successful login<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">login</span><span style="color: #007700">(</span><span style="color: #0000BB">$_POST&#91;</span><span style="color: #DD0000">'username'</span><span style="color: #0000BB">&#93;</span><span style="color: #007700">,</span><span style="color: #0000BB">$_POST&#91;</span><span style="color: #DD0000">'password'</span><span style="color: #0000BB">&#93;</span><span style="color: #007700">) <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">// successful login redirect user<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">redirect</span><span style="color: #007700">(</span><span style="color: #DD0000">'successfulLoginPage'</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125; <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">else <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">// login failed display error message to user via validation function<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;&nbsp;$this-&gt;validation-&gt;set_message('invalidLogin', 'Login Error Msg.');&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// display current view with login error messages<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;<br />&#125; </span>
</span>
</code></div><p></p>

<p>If the user passes the validation rules but fails to login correctly I wish to set a custom validation message and display it to the user (separate from the username &amp; password fields). However I&#8217;m not at all clear on how to proceed using the $this-&gt;validation-&gt;set_message function.</p>

<p>In my view I&#8217;m assuming I may need something like:<br />
</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php </span><span style="color: #007700">echo </span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">validation</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">invalidLogin_error</span><span style="color: #007700">; </span><span style="color: #0000BB">?&gt; </span>
</span>
</code></div><p></p>

<p>I&#8217;ve looked through many of the validation posts here but I&#8217;m still missing some key concept. BTW: I&#8217;ve seen suggestions to use $data[] as an alternate approache but I somehow feel this can be accomplished with validaton.</p>

<p>Any guidance would be appreciated.</p>

<p>Thanks<br />
Chris</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Help: Using dropdown form helper with an Array from model</title>
      <link rel="alternate" type="text/html" href="http://codeigniter.com/forums/viewthread/93989/" />      
      <id>tag:codeigniter.com,2008:forums/viewthread/.93989</id>
      <published>2008-10-15T18:00:18Z</published>
      <updated>2008-10-15T18:05:29Z</updated>
      <author><name>rt30000</name></author>
      <content type="html">
      <![CDATA[
        <p>I have figured out how to do this the manual way (creating my own helper function), but I would really like to use the built in CI forms helper for the dropdown.</p>

<p>Here is a sample of how I would like to use it&#8230;<br />
</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php </span><span style="color: #007700">echo </span><span style="color: #0000BB">form_dropdown</span><span style="color: #007700">(</span><span style="color: #DD0000">'dessert'</span><span style="color: #007700">, </span><span style="color: #0000BB">$recipes&#91;</span><span style="color: #DD0000">'dessert'</span><span style="color: #0000BB">&#93;</span><span style="color: #007700">, </span><span style="color: #DD0000">''</span><span style="color: #007700">, </span><span style="color: #0000BB">$js</span><span style="color: #007700">);</span><span style="color: #0000BB">?&gt; </span>
</span>
</code></div><p></p>

<p>The $recipes[&#8216;dessert&#8217;] is an array that contains the &#8216;id&#8217; and &#8216;recipe_title&#8217; for multiple items. It&#8217;s my understanding that this should work, I am not sure why it does not. Here is a print_r(); of my $recipes[&#8216;dessert&#8217;] array (two items):<br />
</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #007700">Array ( <br /></span><span style="color: #0000BB">&#91;0&#93; </span><span style="color: #007700">=&gt; Array ( </span><span style="color: #0000BB">&#91;id&#93; </span><span style="color: #007700">=&gt; </span><span style="color: #0000BB">26 &#91;recipe_title&#93; </span><span style="color: #007700">=&gt; </span><span style="color: #0000BB">Angel Food Cake </span><span style="color: #007700">)<br /></span><span style="color: #0000BB">&#91;1&#93; </span><span style="color: #007700">=&gt; Array ( </span><span style="color: #0000BB">&#91;id&#93; </span><span style="color: #007700">=&gt; </span><span style="color: #0000BB">27 &#91;recipe_title&#93; </span><span style="color: #007700">=&gt; </span><span style="color: #0000BB">Chocolate Angel Food Cake </span><span style="color: #007700">) <br />) </span>
</span>
</code></div><p></p>

<p>I can loop through the array fine, so why is it not working in the CI form_dropdown<a href="http://codeigniter.com/user_guide/helpers/form_helper.html">CI form_dropdown();</a> function? </p>

<p>You can view the page <a href="http://www.new.gffarms.com/index.php/recipes">HERE</a>.</p>

<p>Thanks so much for shedding any light on this.</p>

<p>Rob</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>404 error page not found</title>
      <link rel="alternate" type="text/html" href="http://codeigniter.com/forums/viewthread/93838/" />      
      <id>tag:codeigniter.com,2008:forums/viewthread/.93838</id>
      <published>2008-10-14T09:47:06Z</published>
      <updated></updated>
      <author><name>babu</name></author>
      <content type="html">
      <![CDATA[
        <p>i am new to CI&#8230;i am getting this error 404 error page not found,while i am clicking the links..<span style="color:green;">Actually,i change the codeigniter&#8217;s code from one server to another server.In my pervious server its working.But in my new server,its not working and its also working in my localhost also.i tryout all the procedure in codeigniter topics(thats is in troubleshooting) and forum topics also.</span>.my project is in deadline..pls help me to sort out my problem&#8230;its very urgent</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>How to integrate Mail Queue with CodeIgniter</title>
      <link rel="alternate" type="text/html" href="http://codeigniter.com/forums/viewthread/93795/" />      
      <id>tag:codeigniter.com,2008:forums/viewthread/.93795</id>
      <published>2008-10-13T23:40:26Z</published>
      <updated></updated>
      <author><name>iamrendell</name></author>
      <content type="html">
      <![CDATA[
        <p>Hi! I am using Mail Queue for sending batch notifications to the users of my system. I&#8217;m just wondering how I may be able to implement this with CI&#8230; and where do you place the Mail Queue folder? </p>

<p>Badly in need of help&#8230; =D</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Mailing content, getting unwanted characters</title>
      <link rel="alternate" type="text/html" href="http://codeigniter.com/forums/viewthread/89196/" />      
      <id>tag:codeigniter.com,2008:forums/viewthread/.89196</id>
      <published>2008-08-26T04:14:44Z</published>
      <updated></updated>
      <author><name>grezly</name></author>
      <content type="html">
      <![CDATA[
        <p>I&#8217;m trying to create a mailinglist (small one).</p>

<p>But if i&#8217;m sending email i get the following characters in my email:<br />
&#8220;00&#8221; en &#8220;3D&#8221;</p>

<p></p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #007700">&lt;</span><span style="color: #0000BB">div </span><span style="color: #007700">class=</span><span style="color: #0000BB">3D</span><span style="color: #DD0000">"block"</span><span style="color: #007700">&gt;<br />=</span><span style="color: #0000BB">00<br /></span><span style="color: #007700">&lt;</span><span style="color: #0000BB">h3</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Nieuwsbrief 2</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">h3</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">h4</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Nieuwsbrief van 2008</span><span style="color: #007700">-</span><span style="color: #0000BB">08</span><span style="color: #007700">-</span><span style="color: #0000BB">26 11</span><span style="color: #007700">:</span><span style="color: #0000BB">01</span><span style="color: #007700">:</span><span style="color: #0000BB">11</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">br </span><span style="color: #007700">/&gt;&lt;/</span><span style="color: #0000BB">h4</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt; </span>
</span>
</code></div><p></p>

<p>or<br />
</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">link href</span><span style="color: #007700">=</span><span style="color: #0000BB">3D</span><span style="color: #DD0000">"testing.com" </span><span style="color: #0000BB">rel</span><span style="color: #007700">=<br />=</span><span style="color: #0000BB">3D</span><span style="color: #DD0000">"stylesheet" </span><span style="color: #0000BB">type</span><span style="color: #007700">=</span><span style="color: #0000BB">3D</span><span style="color: #DD0000">"text/css" </span><span style="color: #007700">/&gt; </span>
</span>
</code></div><p><br />
eg. The testing.com is a replaced url<br />
I&#8217;m getting the content with </p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">$content </span><span style="color: #007700">= </span><span style="color: #0000BB">file_get_contents&#40;$data&#91;</span><span style="color: #DD0000">'url'</span><span style="color: #0000BB">&#93;</span><span style="color: #007700">.</span><span style="color: #0000BB">$newsbrief_url</span><span style="color: #007700">.</span><span style="color: #0000BB">$id&#41;</span><span style="color: #007700">; </span>
</span>
</code></div><p><br />
If i&#8217;m watching that url that&#8217;s been given with file_get_contents everything is normal.</p>

<p>For the loop to email i&#8217;m using the following</p>

<p></p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #007700">foreach(</span><span style="color: #0000BB">$users </span><span style="color: #007700">as </span><span style="color: #0000BB">$user</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">email</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">clear</span><span style="color: #007700">(</span><span style="color: #0000BB">TRUE</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">email</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">initialize</span><span style="color: #007700">(</span><span style="color: #0000BB">$config</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">email</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">from</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">config</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">item</span><span style="color: #007700">(</span><span style="color: #DD0000">'to_email'</span><span style="color: #007700">), </span><span style="color: #DD0000">'testing'</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">email</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">message</span><span style="color: #007700">(</span><span style="color: #0000BB">$content</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">email</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">subject</span><span style="color: #007700">(</span><span style="color: #0000BB">$onderwerp</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">email</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">to</span><span style="color: #007700">(</span><span style="color: #0000BB">$user</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">email</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">send</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$data&#91;</span><span style="color: #DD0000">'block'</span><span style="color: #0000BB">&#93; </span><span style="color: #007700">.= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">email</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">print_debugger</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125; </span>
</span>
</code></div><p></p>

<p>The config files that i use are <br />
</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">$config&#91;</span><span style="color: #DD0000">'mailtype'</span><span style="color: #0000BB">&#93; </span><span style="color: #007700">= </span><span style="color: #DD0000">'html'</span><span style="color: #007700">; </span>
</span>
</code></div><p></p>



<p>So when i&#8217;m getting the html-mail in my mailbox it will quit opening until the &#8220;00&#8221; character (00-byte?).</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Who wants to test the new CI Form Validation class&#63;</title>
      <link rel="alternate" type="text/html" href="http://codeigniter.com/forums/viewthread/89251/" />      
      <id>tag:codeigniter.com,2008:forums/viewthread/.89251</id>
      <published>2008-08-26T14:25:38Z</published>
      <updated>2008-08-26T14:26:01Z</updated>
      <author><name>Rick Ellis</name></author>
      <content type="html">
      <![CDATA[
        <p>Hi everyone!</p>

<p>I wanted to mention that I added a new Form Validation library to our SVN repository. We plan to make it available in the next version of CI, but since this is a fairly substantial rewrite I thought it would be good to let people kick the tires before officially releasing it.</p>

<p>Among the new features:</p>

<p>- Simplified syntax.&nbsp; The old version required users to set rules in one step, and set field names in another.&nbsp; These two steps have been combined into one.</p>

<p>- Array support.&nbsp; The new class allows arrays to be used as field names.&nbsp; It supports multidimensional arrays as deep as you need.&nbsp; For example, you could call a field:&nbsp; options[colors][websafe][]</p>

<p>- Support for storing your rules in a config file so you can manage your rules in one place.&nbsp; You can even organize your rules into groups of rules. These rules can be loaded as needed, and even assigned to specific controllers/functions and loaded automatically. </p>

<p>- Added several helper functions so that your view files no longer need to use the validation object.</p>

<p><br />
If you decide to try the new library, please download the entire CI application from SVN (including the user guide), since a number of files have changes to support the new library.</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Book &#45; CodeIgniter for Rapid PHP Application Development (David Upton) Problem</title>
      <link rel="alternate" type="text/html" href="http://codeigniter.com/forums/viewthread/83278/" />      
      <id>tag:codeigniter.com,2008:forums/viewthread/.83278</id>
      <published>2008-06-24T19:57:25Z</published>
      <updated></updated>
      <author><name>bennyhill</name></author>
      <content type="html">
      <![CDATA[
        <p>I am going through this book and the author has this defined on page 189<br />
$this-&gt;load-&gt;library(&#8216;errors&#8217;);</p>

<p>then uses what I think is a function from it on page 194<br />
$this-&gt;failure($message, &#8216;sites&#8217;);</p>

<p>I get errors when I run this, codeigniter says it can&#8217;t load that library.&nbsp; And for the life of me I cannot find anywhere in the book where he creates this library or defines any failure function.</p>

<p>This book if from 2007.&nbsp; IS it possible that there use to be an errors library native to CodeIgniter and that it is not there anymore in the current build?&nbsp; Anyone that is familiar with this book please let me know.</p>

<p>Thanks</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Removing the index.php file</title>
      <link rel="alternate" type="text/html" href="http://codeigniter.com/forums/viewthread/93803/" />      
      <id>tag:codeigniter.com,2008:forums/viewthread/.93803</id>
      <published>2008-10-14T02:17:37Z</published>
      <updated></updated>
      <author><name>asim111</name></author>
      <content type="html">
      <![CDATA[
        <p>Hi, i am new to CI.<br />
i have been developed an &#8221;<b>auto dealer</b>&#8221; module by using CI.</p>

<p>i want to remove <b>index.php</b> from the URL&#8230;<br />
Todo this, i created a <b>.htaccess file</b><br />
</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">Options </span><span style="color: #007700">+</span><span style="color: #0000BB">FollowSymLinks<br /></span><span style="color: #007700">&lt;</span><span style="color: #0000BB">IfModule mod_rewrite</span><span style="color: #007700">.</span><span style="color: #0000BB">c</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">RewriteEngine on&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;RewriteCond </span><span style="color: #007700">$</span><span style="color: #0000BB">1 </span><span style="color: #007700">!^(</span><span style="color: #0000BB">index\</span><span style="color: #007700">.</span><span style="color: #0000BB">php</span><span style="color: #007700">|</span><span style="color: #0000BB">resources</span><span style="color: #007700">|</span><span style="color: #0000BB">robots\</span><span style="color: #007700">.</span><span style="color: #0000BB">txt</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">RewriteRule </span><span style="color: #007700">^(.*)$ </span><span style="color: #0000BB">http</span><span style="color: #007700">:</span><span style="color: #FF8000">//www.auto_site_url.co.uk/index.php/$1 &#91;L&#93;<br /></span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">IfModule</span><span style="color: #007700">&gt; </span>
</span>
</code></div><p></p>

<p>secondly,i modified config file<br />
</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">$config&#91;</span><span style="color: #DD0000">'index_page'</span><span style="color: #0000BB">&#93; </span><span style="color: #007700">= </span><span style="color: #DD0000">"index.php"</span><span style="color: #007700">; </span>
</span>
</code></div><p><br />
<b>Replaced with </b><br />
</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">$config&#91;</span><span style="color: #DD0000">'index_page'</span><span style="color: #0000BB">&#93; </span><span style="color: #007700">= </span><span style="color: #DD0000">""</span><span style="color: #007700">; </span>
</span>
</code></div><p></p>

<p><br />
this project is working 100% on local server.<br />
but on live server it is not working properly</p>

<p><br />
ON LIVE SERVER its automatically changing site url like<br />
</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">http</span><span style="color: #007700">:</span><span style="color: #FF8000">//www.auto_site_url.co.uk/ </span>
</span>
</code></div><p><br />
<b>INTO</b><br />
</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">http</span><span style="color: #007700">:</span><span style="color: #FF8000">//www.auto_site_url.co.uk/index.php/ </span>
</span>
</code></div><p></p>

<p><br />
and due to this, displaying error page with message<br />
</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">An Error Was Encountered<br />Unable to load the requested </span><span style="color: #007700">class: </span><span style="color: #0000BB">my_validator </span>
</span>
</code></div><p></p>

<p>i think something wrong with .htaccess file, but not sure</p>

<p>please help me to resolve this issue</p>

<p>thanks</p>
      ]]>
      </content>
    </entry>


</feed>