Another blank page problem (googled the H out of this with no solutions) |
[eluser]blazarian[/eluser]
Hi there, I have extended the default CI_Controller and when I use the custom controller, there's only blank page and nothing else. When I use the CI_Controller on my controller (such as homepage controller) it works fine. So only the custom one does not work and I have tried everything to solve this.. but no solutions found. 1. The controller prefix is set to App_ instead of MY_ 2. The controller class is located in application/libraries and it's named "App_Controller.php" 3. I have CHMOD'd the file 755 4. Even if I put only the __construct function inside the custom controller and then parent::__construct(); inside it, even that does not work when it acts se same as the CI_Controller 5. I checked the logs and the log says this: WITH THE APP_CONTROLLER: Code: DEBUG - 2011-07-13 14:56:57 --> Config Class Initialized WITH THE CI_CONTROLLER: Code: DEBUG - 2011-07-13 15:05:03 --> Config Class Initialized I have ran totally out of ideas here and can't figure out what's causing this. Could you tell me everything that could cause this problem?
[eluser]cideveloper[/eluser]
What version of CI are you using? If it is 2+ then you need to have the core classes in the "core" directory
[eluser]blazarian[/eluser]
Thousands of thanks to you mate. I have missed that kind of change in CI. Works now! EDIT: One thing though... where the mentioning is about it? I checked the change log through and I didn't find any info about this. (http://ellislab.com/codeigniter/user-gui...gelog.html)
[eluser]cideveloper[/eluser]
http://ellislab.com/codeigniter/user-gui...asses.html
[eluser]blazarian[/eluser]
Ok. One last thing... if the core classes are currently used like CI_Coreclass... is it possible to extend those classes with empty prefix, so the custom classes would be used like Coreclass (fe. class Members extends Controller?). I just hate the prefixes personally in 24/7 usage with custom core classes.. |
Welcome Guest, Not a member yet? Register Sign In |