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

[eluser]Aken[/eluser]
[quote author="cPage" date="1358816404"]Because you can't extend the base MY_Controller into libraries like this :

Code:
class Frontend  extends  MY_Controller { ... }
[/quote]

I don't know if you're confusing terminology, but you never want libraries to extend a controller class.

If you want to avoid multiple classes in the same file, then just use normal php and include/require the files from your MY_Controller.php file. There is no reason to create an autoload and potentially add problems to your code in the future so you can support two files, when you can just toss in some normal PHP.


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