Welcome Guest, Not a member yet? Register   Sign In
Another blank page problem (googled the H out of this with no solutions)
#1

[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
DEBUG - 2011-07-13 14:56:57 --> Hooks Class Initialized
DEBUG - 2011-07-13 14:56:57 --> Utf8 Class Initialized
DEBUG - 2011-07-13 14:56:57 --> UTF-8 Support Enabled
DEBUG - 2011-07-13 14:56:57 --> URI Class Initialized
DEBUG - 2011-07-13 14:56:57 --> Router Class Initialized
DEBUG - 2011-07-13 14:56:57 --> Output Class Initialized
DEBUG - 2011-07-13 14:56:57 --> Security Class Initialized
DEBUG - 2011-07-13 14:56:57 --> Input Class Initialized
DEBUG - 2011-07-13 14:56:57 --> Global POST and COOKIE data sanitized
DEBUG - 2011-07-13 14:56:57 --> Language Class Initialized

WITH THE CI_CONTROLLER:
Code:
DEBUG - 2011-07-13 15:05:03 --> Config Class Initialized
DEBUG - 2011-07-13 15:05:03 --> Hooks Class Initialized
DEBUG - 2011-07-13 15:05:03 --> Utf8 Class Initialized
DEBUG - 2011-07-13 15:05:03 --> UTF-8 Support Enabled
DEBUG - 2011-07-13 15:05:03 --> URI Class Initialized
DEBUG - 2011-07-13 15:05:03 --> Router Class Initialized
DEBUG - 2011-07-13 15:05:03 --> No URI present. Default controller set.
DEBUG - 2011-07-13 15:05:03 --> Output Class Initialized
DEBUG - 2011-07-13 15:05:03 --> Security Class Initialized
DEBUG - 2011-07-13 15:05:03 --> Input Class Initialized
DEBUG - 2011-07-13 15:05:03 --> Global POST and COOKIE data sanitized
DEBUG - 2011-07-13 15:05:03 --> Language Class Initialized
DEBUG - 2011-07-13 15:05:03 --> Loader Class Initialized
DEBUG - 2011-07-13 15:05:03 --> Helper loaded: url_helper
DEBUG - 2011-07-13 15:05:03 --> Helper loaded: path_helper
DEBUG - 2011-07-13 15:05:03 --> Helper loaded: language_helper
DEBUG - 2011-07-13 15:05:03 --> Session Class Initialized
DEBUG - 2011-07-13 15:05:03 --> Helper loaded: string_helper
DEBUG - 2011-07-13 15:05:03 --> A session cookie was not found.
DEBUG - 2011-07-13 15:05:03 --> Session routines successfully run
DEBUG - 2011-07-13 15:05:04 --> Controller Class Initialized
DEBUG - 2011-07-13 15:05:04 --> File loaded: application/views/menu/sidebar.php
DEBUG - 2011-07-13 15:05:04 --> Final output sent to browser
DEBUG - 2011-07-13 15:05:04 --> Total execution time: 1.1721


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?
#2

[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
#3

[eluser]blazarian[/eluser]
Thousands of thanks to you mate. Smile 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)
#4

[eluser]cideveloper[/eluser]
http://ellislab.com/codeigniter/user-gui...asses.html
#5

[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.. Smile




Theme © iAndrew 2016 - Forum software by © MyBB