Welcome Guest, Not a member yet? Register   Sign In
Email configuration doesn't work?
#8

[eluser]drewbee[/eluser]
Loader.php

We check Upper and Lower case class names. The original core library is Email.php, so the first iteration of the array is used "Email".

function _ci_load_class:

Line 752:
Code:
foreach (array(ucfirst($class), strtolower($class)) as $class)

Since we are in our first iteration, we pass the value of "Email" as the $class variable and return the value, exiting the loop, not giving our lower case counterpart the time of day.

Line 829:
Code:
return $this->_ci_init_class($class, '', $params, $object_name);



function _ci_init_class:

Line 865 - 868:
Code:
if (file_exists(APPPATH.'config/'.$class.EXT))
{
    include_once(APPPATH.'config/'.$class.EXT);
}
Nope: APPPATH.'config/Email.php' does not exist.


Among all of that, the session class seems to accept my configuration file with no issues (lower case). One difference is that I do have that extended though, which the *stuff* in the subclass loader part of the loader method are inheritable the same.


Messages In This Thread
Email configuration doesn't work? - by El Forum - 08-29-2008, 08:34 AM
Email configuration doesn't work? - by El Forum - 08-29-2008, 12:03 PM
Email configuration doesn't work? - by El Forum - 08-29-2008, 02:07 PM
Email configuration doesn't work? - by El Forum - 08-31-2008, 09:35 AM
Email configuration doesn't work? - by El Forum - 09-02-2008, 07:46 AM
Email configuration doesn't work? - by El Forum - 09-02-2008, 03:21 PM
Email configuration doesn't work? - by El Forum - 09-02-2008, 03:38 PM
Email configuration doesn't work? - by El Forum - 09-02-2008, 05:20 PM
Email configuration doesn't work? - by El Forum - 10-28-2008, 09:51 AM
Email configuration doesn't work? - by El Forum - 10-28-2008, 11:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB