Welcome Guest, Not a member yet? Register   Sign In
Upgrading from 1.7.2 to 2.0.2 - Moved from general discussion
#2

[eluser]InsiteFX[/eluser]
All Controllers now extend CI_Controller
All Models now extend CI_Model

If the library you are extending is in system/core then your library goes into application/core
If the library you are extending is in system/libraries then your library goes into application/libraries

Also you need to place this code in your application/config/config.php at the very bottom!
Code:
/*
| -------------------------------------------------------------------
|  Native Autoload - by Phil Sturgeon.
| -------------------------------------------------------------------
|
| Nothing to do with config/autoload.php, this allows PHP autoload to work
| for base controllers and some third-party libraries.
|
| If using HMVC you do not need this! HMVC will autoload.
|
| Place this code at the bottom of your application/config/config.php file.
*/
function __autoload($class)
{
    if (strpos($class, 'CI_') !== 0)
    {
        @include_once(APPPATH . 'core/' . $class . EXT);
    }
}

InsiteFX


Messages In This Thread
Upgrading from 1.7.2 to 2.0.2 - Moved from general discussion - by El Forum - 04-12-2011, 11:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB