• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
porting i18n library to 2.0 - CI_Controller not found

#2
[eluser]InsiteFX[/eluser]
Add this at the bottom of your config.php file - application/config/config.php
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
porting i18n library to 2.0 - CI_Controller not found - by El Forum - 04-15-2011, 01:26 AM
porting i18n library to 2.0 - CI_Controller not found - by El Forum - 04-15-2011, 03:59 AM
porting i18n library to 2.0 - CI_Controller not found - by El Forum - 04-15-2011, 04:23 AM
porting i18n library to 2.0 - CI_Controller not found - by El Forum - 04-15-2011, 02:11 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.