Welcome Guest, Not a member yet? Register   Sign In
sth confused me
#1

[eluser]vantao[/eluser]
I am a newbie to codeigniter!however, something about CI_URI confused me,let's describe it:
Code:
class CI_URI {

    var    $keyval    = array();
    var $uri_string;
    var $segments        = array();
    var $rsegments        = array();

    /**
     * Constructor
     *
     * Simply globalizes the $RTR object.  The front
     * loads the Router class early on so it's not available
     * normally as other classes are.
     *
     * @access    public
     */
    function CI_URI()
    {
        $this->config =& load_class('Config');
        log_message('debug', "URI Class Initialized");
    }
        }



it's a summary of CI_URI,only include constructor method.
what screwed me is this statement:
Quote:$this->config =& load_class('Config');
as above there has no member $config in class CI_URI,why this statement use it??????


Messages In This Thread
sth confused me - by El Forum - 09-29-2009, 06:43 AM
sth confused me - by El Forum - 09-29-2009, 07:26 AM
sth confused me - by El Forum - 09-29-2009, 07:26 AM
sth confused me - by El Forum - 09-29-2009, 07:32 AM
sth confused me - by El Forum - 09-29-2009, 07:34 AM
sth confused me - by El Forum - 09-29-2009, 07:37 AM
sth confused me - by El Forum - 09-29-2009, 07:39 AM
sth confused me - by El Forum - 09-29-2009, 07:40 AM
sth confused me - by El Forum - 09-29-2009, 09:20 AM
sth confused me - by El Forum - 09-30-2009, 01:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB