problem with extending CI_Controller on Linux-based server - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: problem with extending CI_Controller on Linux-based server (/showthread.php?tid=41564) Pages:
1
2
|
problem with extending CI_Controller on Linux-based server - El Forum - 05-11-2011 [eluser]new_in_CI[/eluser] I'm beginner with codeigniter. I have a problem with en error in Code: parent::__construct(); But it's works on my windows-based test server! I have a empty screen in my browser on the linux server (no any errors). Same code works fine on my test server. I've try to debug it and at the moment my /application/core/MY_Controller.php is: Code: class MY_Controller extends CI_Controller in my browser I can see "aaa" string only. Not the "aaabbb" string. I.E. problem in Code: parent::__construct(); Thanks P.S. sorry for my bad English. I'm a begginner with it. problem with extending CI_Controller on Linux-based server - El Forum - 05-11-2011 [eluser]InsiteFX[/eluser] Try saving your files in lowercase not uppercase! InsiteFX problem with extending CI_Controller on Linux-based server - El Forum - 05-11-2011 [eluser]new_in_CI[/eluser] all my controllers in lowercase. Should I save files in /application/core/ in lowercase too? problem with extending CI_Controller on Linux-based server - El Forum - 05-11-2011 [eluser]new_in_CI[/eluser] no luck. all files must be in Camelstyle - i.e. MY_Controller.php. Problem not fixed problem with extending CI_Controller on Linux-based server - El Forum - 05-11-2011 [eluser]danmontgomery[/eluser] Apache error log? problem with extending CI_Controller on Linux-based server - El Forum - 05-11-2011 [eluser]new_in_CI[/eluser] no errors. php does not return en error problem with extending CI_Controller on Linux-based server - El Forum - 05-11-2011 [eluser]InsiteFX[/eluser] Go into your application/config/config.php end set the config variable log_threshold = 4 This will create a log file for you under the application/logs folder just click on the logfile name and you should be able to read it. InsiteFX problem with extending CI_Controller on Linux-based server - El Forum - 05-11-2011 [eluser]new_in_CI[/eluser] thanks, I'll try it problem with extending CI_Controller on Linux-based server - El Forum - 05-11-2011 [eluser]mihaibaboi[/eluser] Linux is case sensitive, so this type of problem usually occurs because of bad file naming. Right now, I don't have my Linux environment set up, but I'd start by double checking the file names (also extensions). problem with extending CI_Controller on Linux-based server - El Forum - 05-11-2011 [eluser]new_in_CI[/eluser] [quote author="mihaibaboi" date="1305160655"]Linux is case sensitive, so this type of problem usually occurs because of bad file naming. Right now, I don't have my Linux environment set up, but I'd start by double checking the file names (also extensions).[/quote] problem in parent::__construct() method - i.e. [CI_Controller]::__construct(). If I comment out this row, I get another errors (becouse constructor does not executed) |