![]() |
Help: _lang and config-files are dispayed instead of included - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Help: _lang and config-files are dispayed instead of included (/showthread.php?tid=25449) |
Help: _lang and config-files are dispayed instead of included - El Forum - 12-12-2009 [eluser]peterphp[/eluser] My problem is that files like project_lang.php or form_validation.php are not properly included by CI, instead the *content* of these files is output to the browser (at the top of my html pages). I am hosting with Rackspace Cloud. CI-Version: 1.7.2 I created a very basic test controller: Code: function index() // provides the test page The output of this is the whole content of the test_lang.php file, followed by my 'Hello world' string from the view. The same happens as soon as I load the form_validation library: $this->load->library('form_validation') This outputs the whole content of the application/config/form_validation.php file. Any help or idea is highly appreciated. Thanks! Help: _lang and config-files are dispayed instead of included - El Forum - 12-13-2009 [eluser]peterphp[/eluser] Hi Guys, just wanted to quickly let you know that I was able to fix the problem. Very simple indeed: the config files were not properly encoded (UTF-8, Unix line endings LF). Sorry for this 'stupid' question ;-) Hope this forum post might be helpful for somebody else with a similar problem. |