<?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>0</updated>
    <rights>Copyright (c) 2012</rights>
    <generator uri="http://www.pmachine.com/" version="2.2.2">ExpressionEngine</generator>
    <id>tag:codeigniter.com,2012:05:25</id>


    <entry>
      <title>Creating variables of type (class)</title>
      <link rel="alternate" type="text/html" href="http://codeigniter.com/forums/viewthread/217925/" />      
      <id>tag:codeigniter.com,2012:forums/viewthread/.217925</id>
      <published>2012-05-25T04:30:15Z</published>
      <updated>0</updated>
      <author><name>Ralf The Dog</name></author>
      <content type="html">
      <![CDATA[
        <p>Hi, Ultra newb question,</p>

<p>I want to create a custom class that will be used in models, views and controllers. I will be creating instances of this class in many non member functions. Where do I define this class to be available everywhere?</p>

<p>Note: I am less interested in methods, however, I am dealing with complex data and need to use lots of properties. I want to create instances of this class in many non member functions. </p>

<p>Thanks for the help.</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>PROCEDURE#4</title>
      <link rel="alternate" type="text/html" href="http://codeigniter.com/forums/viewthread/217924/" />      
      <id>tag:codeigniter.com,2012:forums/viewthread/.217924</id>
      <published>2012-05-25T04:13:21Z</published>
      <updated>2012-05-25T04:19:22Z</updated>
      <author><name>v4et</name></author>
      <content type="html">
      <![CDATA[
        <p>Please tell me if this installation procedure is right:</p>

<p>1-I uploaded the dir CodeIgniter_2.1.0 to root/home moving index.php to root level</p>

<p>2-I edited config,php this way:<br />
|—————————————————————————————————————<br />
| Base Site URL<br />
|—————————————————————————————————————<br />
|<br />
| URL to your CodeIgniter root. Typically this will be your base URL,<br />
| WITH a trailing slash:<br />
|<br />
| http://example.com/<br />
|<br />
| If this is not set then CodeIgniter will guess the protocol, domain and<br />
| path to your installation.<br />
|<br />
*/<br />
$config[‘base_url’] = ‘/root/home’;</p>

<p>/*<br />
|—————————————————————————————————————<br />
| Index File<br />
|—————————————————————————————————————<br />
|<br />
| Typically this will be your index.php file, unless you’ve renamed it to<br />
| something else. If you are using mod_rewrite to remove the page set this<br />
| variable so that it is blank.<br />
|<br />
*/<br />
$config[‘index_page’] = ‘/root/index.php’;</p>

<p>/*<br />
|—————————————————————————————————————</p>

<p> </p>

<p>3- I edited index,php moving it to root level this way:</p>

<p><br />
*———————————————————————————————-<br />
* APPLICATION ENVIRONMENT<br />
*———————————————————————————————-<br />
*<br />
* You can load different configurations depending on your<br />
* current environment. Setting the environment also influences<br />
* things like logging and error reporting.<br />
*<br />
* This can be set to anything, but default usage is:<br />
*<br />
*&nbsp;   development<br />
*&nbsp;   testing<br />
*&nbsp;   production<br />
*<br />
* NOTE: If you change these, also change the error_reporting() code below<br />
*<br />
*/<br />
define(‘PRODUCTION’, ‘development’);<br />
/*<br />
*———————————————————————————————-<br />
* ERROR REPORTING<br />
*———————————————————————————————-<br />
*<br />
* Different environments will require different levels of error reporting.<br />
* By default development will show errors but testing and live will hide them.<br />
*/</p>

<p>if (defined(‘PRODUCTION’))<br />
&#123;<br />
switch (ENVIRONMENT)<br />
&#123;<br />
&nbsp; case ‘development’:<br />
&nbsp; error_reporting(E_ALL);<br />
&nbsp; break;</p>

<p>&nbsp; case ‘testing’:<br />
&nbsp; case ‘production’:<br />
&nbsp; error_reporting(0);<br />
&nbsp; break;</p>

<p>&nbsp; default:<br />
&nbsp; exit(‘The application environment is not set correctly.’);<br />
&#125;<br />
&#125;</p>

<p>/*</p>

<p>*———————————————————————————————-<br />
* SYSTEM FOLDER NAME<br />
*———————————————————————————————-<br />
*<br />
* This variable must contain the name of your “system” folder.<br />
* Include the path if the folder is not in the same directory<br />
* as this file.<br />
*<br />
*/<br />
$system_path = ‘/root/home/CodeIgniter_2.1.0/system’;</p>

<p>/*<br />
*———————————————————————————————-<br />
* APPLICATION FOLDER NAME<br />
*———————————————————————————————-<br />
*<br />
* If you want this front controller to use a different “application”<br />
* folder then the default one you can set its name here. The folder<br />
* can also be renamed or relocated anywhere on your server.&nbsp; If<br />
* you do, use a full server path. For more info please see the user guide:<br />
* http://codeigniter.com/user_guide/general/managing_apps.html<br />
*<br />
* NO TRAILING SLASH!<br />
*<br />
*/<br />
$application_folder = ‘/root/home/CodeIgniter_2.1.0/application’;</p>

<p><br />
NOTES FROM OP<br />
Maybe it should be just<br />
$system_path = &#8216;system&#8217;;<br />
and<br />
$system_path = &#8216;system&#8217;;<br />
since I never moved them from root/home</p>

<p>You can refer to this other procedures too<br />
http://codeigniter.com/forums/viewthread/217919/<br />
http://codeigniter.com/forums/viewthread/217922/<br />
http://codeigniter.com/forums/viewthread/217923/</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>PROCEDURE#3</title>
      <link rel="alternate" type="text/html" href="http://codeigniter.com/forums/viewthread/217923/" />      
      <id>tag:codeigniter.com,2012:forums/viewthread/.217923</id>
      <published>2012-05-25T03:57:24Z</published>
      <updated>2012-05-25T04:21:47Z</updated>
      <author><name>v4et</name></author>
      <content type="html">
      <![CDATA[
        <p>Please tell me if this installation procedure is right:</p>

<p>1-I uploaded the dir CodeIgniter_2.1.0 to root/home moving index.php to root level</p>

<p>2-I edited config,php this way:<br />
|—————————————————————————————————————<br />
| Base Site URL<br />
|—————————————————————————————————————<br />
|<br />
| URL to your CodeIgniter root. Typically this will be your base URL,<br />
| WITH a trailing slash:<br />
|<br />
| http://example.com/<br />
|<br />
| If this is not set then CodeIgniter will guess the protocol, domain and<br />
| path to your installation.<br />
|<br />
*/<br />
$config[‘base_url’] = ‘mydomain.biz/root/home’;</p>

<p>/*<br />
|—————————————————————————————————————<br />
| Index File<br />
|—————————————————————————————————————<br />
|<br />
| Typically this will be your index.php file, unless you’ve renamed it to<br />
| something else. If you are using mod_rewrite to remove the page set this<br />
| variable so that it is blank.<br />
|<br />
*/<br />
$config[‘index_page’] = ‘mydomain.biz/root/index.php’;</p>

<p>/*<br />
|—————————————————————————————————————</p>

<p> </p>

<p>3- I edited index,moving it to root this way:</p>

<p><br />
*———————————————————————————————-<br />
* APPLICATION ENVIRONMENT<br />
*———————————————————————————————-<br />
*<br />
* You can load different configurations depending on your<br />
* current environment. Setting the environment also influences<br />
* things like logging and error reporting.<br />
*<br />
* This can be set to anything, but default usage is:<br />
*<br />
*&nbsp;   development<br />
*&nbsp;   testing<br />
*&nbsp;   production<br />
*<br />
* NOTE: If you change these, also change the error_reporting() code below<br />
*<br />
*/<br />
define(‘production’, ‘development’);<br />
/*<br />
*———————————————————————————————-<br />
* ERROR REPORTING<br />
*———————————————————————————————-<br />
*<br />
* Different environments will require different levels of error reporting.<br />
* By default development will show errors but testing and live will hide them.<br />
*/</p>

<p>if (defined(‘production’))<br />
&#123;<br />
switch (ENVIRONMENT)<br />
&#123;<br />
&nbsp; case ‘development’:<br />
&nbsp; error_reporting(E_ALL);<br />
&nbsp; break;</p>

<p>&nbsp; case ‘testing’:<br />
&nbsp; case ‘production’:<br />
&nbsp; error_reporting(0);<br />
&nbsp; break;</p>

<p>&nbsp; default:<br />
&nbsp; exit(‘The application environment is not set correctly.’);<br />
&#125;<br />
&#125;</p>

<p>/*</p>

<p>*———————————————————————————————-<br />
* SYSTEM FOLDER NAME<br />
*———————————————————————————————-<br />
*<br />
* This variable must contain the name of your “system” folder.<br />
* Include the path if the folder is not in the same directory<br />
* as this file.<br />
*<br />
*/<br />
$system_path = ‘mydomain.biz/root/home/CodeIgniter_2.1.0/system’;</p>

<p>/*<br />
*———————————————————————————————-<br />
* APPLICATION FOLDER NAME<br />
*———————————————————————————————-<br />
*<br />
* If you want this front controller to use a different “application”<br />
* folder then the default one you can set its name here. The folder<br />
* can also be renamed or relocated anywhere on your server.&nbsp; If<br />
* you do, use a full server path. For more info please see the user guide:<br />
* http://codeigniter.com/user_guide/general/managing_apps.html<br />
*<br />
* NO TRAILING SLASH!<br />
*<br />
*/<br />
$application_folder = ‘mydomain.biz/root/home/CodeIgniter_2.1.0/application’;</p>

<p><br />
NOTES FROM OP<br />
Altering database file is not meant on all cases or does it have to be added the database<br />
of the script that is using code igniter?</p>

<p>You can refer to this other prodedures too<br />
http://codeigniter.com/forums/viewthread/217919/<br />
http://codeigniter.com/forums/viewthread/217922/<br />
http://codeigniter.com/forums/viewthread/217924/</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>PROCEDURE#2</title>
      <link rel="alternate" type="text/html" href="http://codeigniter.com/forums/viewthread/217922/" />      
      <id>tag:codeigniter.com,2012:forums/viewthread/.217922</id>
      <published>2012-05-25T03:48:16Z</published>
      <updated>2012-05-25T04:24:26Z</updated>
      <author><name>v4et</name></author>
      <content type="html">
      <![CDATA[
        <p>Please tell me if this installation procedure is right:</p>

<p>1-I uploaded the dir CodeIgniter_2.1.0 to root/home keeping index.php without moving</p>

<p>2-I edited config,php this way:<br />
|—————————————————————————————————————<br />
| Base Site URL<br />
|—————————————————————————————————————<br />
|<br />
| URL to your CodeIgniter root. Typically this will be your base URL,<br />
| WITH a trailing slash:<br />
|<br />
| http://example.com/<br />
|<br />
| If this is not set then CodeIgniter will guess the protocol, domain and<br />
| path to your installation.<br />
|<br />
*/<br />
$config[‘base_url’] = ‘/root/home’;</p>

<p>/*<br />
|—————————————————————————————————————<br />
| Index File<br />
|—————————————————————————————————————<br />
|<br />
| Typically this will be your index.php file, unless you’ve renamed it to<br />
| something else. If you are using mod_rewrite to remove the page set this<br />
| variable so that it is blank.<br />
|<br />
*/<br />
$config[‘index_page’] = ‘/root/home/CodeIgniter_2.1.0/index.php’;</p>

<p>/*<br />
|—————————————————————————————————————</p>

<p> </p>

<p>3- I edited index,php without moving it from root/home/CodeIgniter_2.1.0/ this way:</p>

<p><br />
*———————————————————————————————-<br />
* APPLICATION ENVIRONMENT<br />
*———————————————————————————————-<br />
*<br />
* You can load different configurations depending on your<br />
* current environment. Setting the environment also influences<br />
* things like logging and error reporting.<br />
*<br />
* This can be set to anything, but default usage is:<br />
*<br />
*&nbsp;   development<br />
*&nbsp;   testing<br />
*&nbsp;   production<br />
*<br />
* NOTE: If you change these, also change the error_reporting() code below<br />
*<br />
*/<br />
define(‘production’, ‘development’);<br />
/*<br />
*———————————————————————————————-<br />
* ERROR REPORTING<br />
*———————————————————————————————-<br />
*<br />
* Different environments will require different levels of error reporting.<br />
* By default development will show errors but testing and live will hide them.<br />
*/</p>

<p>if (defined(‘production’))<br />
&#123;<br />
switch (production)<br />
&#123;<br />
&nbsp; case ‘development’:<br />
&nbsp; error_reporting(E_ALL);<br />
&nbsp; break;</p>

<p>&nbsp; case ‘testing’:<br />
&nbsp; case ‘production’:<br />
&nbsp; error_reporting(0);<br />
&nbsp; break;</p>

<p>&nbsp; default:<br />
&nbsp; exit(‘The application environment is not set correctly.’);<br />
&#125;<br />
&#125;</p>

<p>/*</p>

<p>*———————————————————————————————-<br />
* SYSTEM FOLDER NAME<br />
*———————————————————————————————-<br />
*<br />
* This variable must contain the name of your “system” folder.<br />
* Include the path if the folder is not in the same directory<br />
* as this file.<br />
*<br />
*/<br />
$system_path = ‘root/home/CodeIgniter_2.1.0/system’;</p>

<p>/*<br />
*———————————————————————————————-<br />
* APPLICATION FOLDER NAME<br />
*———————————————————————————————-<br />
*<br />
* If you want this front controller to use a different “application”<br />
* folder then the default one you can set its name here. The folder<br />
* can also be renamed or relocated anywhere on your server.&nbsp; If<br />
* you do, use a full server path. For more info please see the user guide:<br />
* http://codeigniter.com/user_guide/general/managing_apps.html<br />
*<br />
* NO TRAILING SLASH!<br />
*<br />
*/<br />
$application_folder = ‘/root/home/CodeIgniter_2.1.0/application’;</p>

<p><br />
NOTES FROM OP<br />
In this procedure I left index.php without moving as stated avobe</p>

<p>You can also refer to this other procedures<br />
http://codeigniter.com/forums/viewthread/217919/<br />
http://codeigniter.com/forums/viewthread/217923/<br />
http://codeigniter.com/forums/viewthread/217924/</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>PROCEDURE #1</title>
      <link rel="alternate" type="text/html" href="http://codeigniter.com/forums/viewthread/217919/" />      
      <id>tag:codeigniter.com,2012:forums/viewthread/.217919</id>
      <published>2012-05-25T03:34:05Z</published>
      <updated>2012-05-25T04:26:21Z</updated>
      <author><name>v4et</name></author>
      <content type="html">
      <![CDATA[
        <p>Please tell me if this installation procedure is right:</p>

<p>1-I uploaded the dir CodeIgniter_2.1.0 to root/home keeping index.php without moving</p>



<p>2-I edited config,php this way:<br />
|&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
| Base Site URL<br />
|&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
|<br />
| URL to your CodeIgniter root. Typically this will be your base URL,<br />
| WITH a trailing slash:<br />
|<br />
| http://example.com/<br />
|<br />
| If this is not set then CodeIgniter will guess the protocol, domain and<br />
| path to your installation.<br />
|<br />
*/<br />
$config[&#8216;base_url&#8217;] = &#8216;mydomain.biz/root/home&#8217;;</p>

<p>/*<br />
|&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
| Index File<br />
|&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
|<br />
| Typically this will be your index.php file, unless you&#8217;ve renamed it to<br />
| something else. If you are using mod_rewrite to remove the page set this<br />
| variable so that it is blank.<br />
|<br />
*/<br />
$config[&#8216;index_page&#8217;] = &#8216;mydomain.biz/root/home/CodeIgniter_2.1.0/index.php&#8217;;</p>

<p>/*<br />
|&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>

<p>&nbsp;</p>

<p>3- I edited index,php without moving it from root/home/CodeIgniter_2.1.0/ this way:</p>

<p><br />
*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
 * APPLICATION ENVIRONMENT<br />
 *&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
 *<br />
 * You can load different configurations depending on your<br />
 * current environment. Setting the environment also influences<br />
 * things like logging and error reporting.<br />
 *<br />
 * This can be set to anything, but default usage is:<br />
 *<br />
 *&nbsp;  &nbsp; development<br />
 *&nbsp;  &nbsp; testing<br />
 *&nbsp;  &nbsp; production<br />
 *<br />
 * NOTE: If you change these, also change the error_reporting() code below<br />
 *<br />
 */<br />
 define(&#8216;PRODUCTION&#8217;, &#8216;development&#8217;);<br />
/*<br />
 *&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
 * ERROR REPORTING<br />
 *&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
 *<br />
 * Different environments will require different levels of error reporting.<br />
 * By default development will show errors but testing and live will hide them.<br />
 */</p>

<p>if (defined(&#8216;PRODUCTION&#8217;))<br />
&#123;<br />
 switch (PRODUCTION)<br />
 &#123;<br />
&nbsp; case &#8216;development&#8217;:<br />
&nbsp;  error_reporting(E_ALL);<br />
&nbsp; break;<br />
 <br />
&nbsp; case &#8216;testing&#8217;:<br />
&nbsp; case &#8216;production&#8217;:<br />
&nbsp;  error_reporting(0);<br />
&nbsp; break;</p>

<p>&nbsp; default:<br />
&nbsp;  exit(&#8216;The application environment is not set correctly.&#8217;);<br />
 &#125;<br />
&#125;</p>

<p>/*</p>

<p>*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
 * SYSTEM FOLDER NAME<br />
 *&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
 *<br />
 * This variable must contain the name of your &#8220;system&#8221; folder.<br />
 * Include the path if the folder is not in the same  directory<br />
 * as this file.<br />
 *<br />
 */<br />
 $system_path = &#8216;mydomain.biz/root/home/CodeIgniter_2.1.0/system&#8217;;</p>

<p>/*<br />
 *&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
 * APPLICATION FOLDER NAME<br />
 *&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
 *<br />
 * If you want this front controller to use a different &#8220;application&#8221;<br />
 * folder then the default one you can set its name here. The folder<br />
 * can also be renamed or relocated anywhere on your server.&nbsp; If<br />
 * you do, use a full server path. For more info please see the user guide:<br />
 * http://codeigniter.com/user_guide/general/managing_apps.html<br />
 *<br />
 * NO TRAILING SLASH!<br />
 *<br />
 */<br />
 $application_folder = &#8216;mydomain.biz/root/home/CodeIgniter_2.1.0/application&#8217;;</p>

<p><br />
NOTES FROM OP<br />
Im getting to figure out you only specify url path on system and application when you move the<br />
dir to other location other wise is worthless isnt it?</p>

<p>You can refer to this other procedures<br />
http://codeigniter.com/forums/viewthread/217922/<br />
http://codeigniter.com/forums/viewthread/217923/<br />
http://codeigniter.com/forums/viewthread/217924/</p>

<p>&nbsp;</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>hwo to retrieve data from two tables and display it in single view</title>
      <link rel="alternate" type="text/html" href="http://codeigniter.com/forums/viewthread/217917/" />      
      <id>tag:codeigniter.com,2012:forums/viewthread/.217917</id>
      <published>2012-05-25T03:11:56Z</published>
      <updated>0</updated>
      <author><name>jeanel16</name></author>
      <content type="html">
      <![CDATA[
        <p>I have two tables the names are menudb and msgdb, I want to select all from menudb, and also select all from msgdb then display the two table on the inboxmsgview.php I dont know how to pass two variables in the view and i know this code can not be correct no matter what i do</p>

<p>$this-&gt;load-&gt;view(‘inboxmsgview’, $data, $data1);</p>

<p>is it possible to pass two tables?</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Database Caching Class</title>
      <link rel="alternate" type="text/html" href="http://codeigniter.com/forums/viewthread/217916/" />      
      <id>tag:codeigniter.com,2012:forums/viewthread/.217916</id>
      <published>2012-05-25T03:04:42Z</published>
      <updated>0</updated>
      <author><name>mbet</name></author>
      <content type="html">
      <![CDATA[
        <p>im using Database Caching Class to cache my queries.. how long will the cached files stay on my cache folder?</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>ion_auth Groups issue</title>
      <link rel="alternate" type="text/html" href="http://codeigniter.com/forums/viewthread/217914/" />      
      <id>tag:codeigniter.com,2012:forums/viewthread/.217914</id>
      <published>2012-05-25T02:45:32Z</published>
      <updated>0</updated>
      <author><name>The Revel</name></author>
      <content type="html">
      <![CDATA[
        <p>Ok, I am trying to assign Multiple groups using the form_multiselect() function.&nbsp; Here is the code the pertains to the issue:</p>

<p>Setting the options in the controller</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">data&#91;</span><span style="color: #DD0000">'options'</span><span style="color: #0000BB">&#93;&nbsp;</span><span style="color: #007700">=&nbsp;array(<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">'1'&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #0000BB">lang</span><span style="color: #007700">(</span><span style="color: #DD0000">'create_admin_storeadm'</span><span style="color: #007700">),<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">'4'&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #0000BB">lang</span><span style="color: #007700">(</span><span style="color: #DD0000">'create_admin_reports'</span><span style="color: #007700">),<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">'3'&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #0000BB">lang</span><span style="color: #007700">(</span><span style="color: #DD0000">'create_admin_superadm'</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;);&nbsp;</span>
</span>
</code></div>

<p>Echoing the form in the view:</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #0000BB">form_multiselect</span><span style="color: #007700">(</span><span style="color: #DD0000">'groups'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$options</span><span style="color: #007700">);&nbsp;</span><span style="color: #0000BB">?&gt;&nbsp;</span>
</span>
</code></div>

<p>Processing the groups in the controller:</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">$groups&nbsp;</span><span style="color: #007700">=&nbsp;array(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">input</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">post</span><span style="color: #007700">(</span><span style="color: #DD0000">'groups&#91;&#93;'</span><span style="color: #007700">));&nbsp;</span>
</span>
</code></div>

<p>If I select the options for group IDs 3 and 4, the database inputs groups 0 and 2&#8230; </p>

<p>I have a feeling its the second part in the controller&#8230; the art where I set groups tot he array.&nbsp; How do I get the selections from groups[] to be #, #?</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Incorrect SQL Query Result with Active Record</title>
      <link rel="alternate" type="text/html" href="http://codeigniter.com/forums/viewthread/217913/" />      
      <id>tag:codeigniter.com,2012:forums/viewthread/.217913</id>
      <published>2012-05-25T02:40:07Z</published>
      <updated>0</updated>
      <author><name>MattHirschfelt</name></author>
      <content type="html">
      <![CDATA[
        <p>Can anyone tell me why running a query through phpMyAdmin on my database gives me a different result than my active record styles query? </p>

<p>The query through phpMyAdmin is</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">SELECT&nbsp;</span><span style="color: #007700">*&nbsp;</span><span style="color: #0000BB">FROM&nbsp;</span><span style="color: #007700">`</span><span style="color: #DD0000">planets</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">GROUP&nbsp;BY&nbsp;</span><span style="color: #007700">`</span><span style="color: #DD0000">player</span><span style="color: #007700">`&nbsp;</span>
</span>
</code></div>
<p>which returns approximately 46,200 results.</p>

<p><br />
The active record query is</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">db</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">from</span><span style="color: #007700">(</span><span style="color: #DD0000">'planets'</span><span style="color: #007700">)-&gt;</span><span style="color: #0000BB">group_by</span><span style="color: #007700">(</span><span style="color: #DD0000">'player'</span><span style="color: #007700">)-&gt;</span><span style="color: #0000BB">count_all_results</span><span style="color: #007700">();&nbsp;</span>
</span>
</code></div><p> <br />
and it returns approximately 6,600 results.</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>[help] Unknown open path folder session ci !</title>
      <link rel="alternate" type="text/html" href="http://codeigniter.com/forums/viewthread/217910/" />      
      <id>tag:codeigniter.com,2012:forums/viewthread/.217910</id>
      <published>2012-05-25T02:30:07Z</published>
      <updated>0</updated>
      <author><name>võ văn tài</name></author>
      <content type="html">
      <![CDATA[
        <p>I needed help. did not understand what is happening with the following error!</p><blockquote>
<p>A PHP Error was encountered</p>

<p>Severity: Warning</p>

<p>Message: Unknown: open(/var/lib/php/session/sess_9fb7986976b52b23cb935becffd1a9ae, O_RDWR) failed: Permission denied (13)</p>

<p>Filename: Unknown</p>

<p>Line Number: 0<br />
A PHP Error was encountered</p>

<p>Severity: Warning</p>

<p>Message: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session)</p>

<p>Filename: Unknown</p>

<p>Line Number: 0</p>
</blockquote>

<p>you can find at this:<br />
<a href="http://test.alodacsan.com/admin/user/login.html">http://test.alodacsan.com/admin/user/login.html</a></p>

<p>&nbsp;</p>
      ]]>
      </content>
    </entry>


</feed>
