Welcome Guest, Not a member yet? Register   Sign In
Frontend and Backend (Base controllers)
#8

[eluser]cPage[/eluser]
[quote author="Aken" date="1358812731"]If you're only loading a single MY_Controller core file, and the rest are libraries, then I really don't see the need for the autoload. Libraries are loaded via the Loader class already. The only way you'd need autoloading is if you wanted to use the "new Class()" instantiation method, which is completely unrelated to base MY_Controller...[/quote]

Because you can't extend the base MY_Controller into libraries like this :

Code:
class Frontend  extends  MY_Controller { ... }

without using the autoload in the config file. I think it depends on what you can stand. I can't stand many classes in 1 file. But i can stand a simple function() in config file, that gives the choice to put every base classes into librairies/ . And using a powerful child such as :

Code:
admin extends Admin_Controller()
{
   function  __construct()
   {
        parent::__construct();  
   }
}


Messages In This Thread
Frontend and Backend (Base controllers) - by El Forum - 01-20-2013, 08:47 PM
Frontend and Backend (Base controllers) - by El Forum - 01-20-2013, 08:50 PM
Frontend and Backend (Base controllers) - by El Forum - 01-20-2013, 10:55 PM
Frontend and Backend (Base controllers) - by El Forum - 01-21-2013, 07:37 AM
Frontend and Backend (Base controllers) - by El Forum - 01-21-2013, 07:57 AM
Frontend and Backend (Base controllers) - by El Forum - 01-21-2013, 08:10 AM
Frontend and Backend (Base controllers) - by El Forum - 01-21-2013, 04:58 PM
Frontend and Backend (Base controllers) - by El Forum - 01-21-2013, 06:00 PM
Frontend and Backend (Base controllers) - by El Forum - 01-21-2013, 08:36 PM
Frontend and Backend (Base controllers) - by El Forum - 01-21-2013, 10:49 PM
Frontend and Backend (Base controllers) - by El Forum - 01-22-2013, 12:21 AM
Frontend and Backend (Base controllers) - by El Forum - 01-22-2013, 12:45 AM
Frontend and Backend (Base controllers) - by El Forum - 01-22-2013, 12:58 AM
Frontend and Backend (Base controllers) - by El Forum - 01-23-2013, 07:27 PM
Frontend and Backend (Base controllers) - by El Forum - 01-23-2013, 09:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB