Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] CI renders views as plain text (shows code)
#1

[eluser]Skippy[/eluser]
I'm running into a novel issue while trying to run a CI application on Apache on Windows 2003. My views are rendered as is, ie. I get the code shown in the browser (with view source). What could cause this?

It's the first time it happens and it's my 4th or 5th medium to big CI app, but the first on Windows.

I haven't done anything strange with caching or buffering or whatnot. Happens in both 1.7.0 and 1.6.3. Any educated guess where I could start to look into this?

I intend to debug the code and track down whatever causes this, but I can't use a debugger (remote server, only FTP and Web access) so it might be painful. So any help is appreciated.
#2

[eluser]Dog Cow[/eluser]
My PHP doesn't allow the short tags, such as this <?= $foo; ?>
That could be the problem.
#3

[eluser]Skippy[/eluser]
Thank you, that seems to be it, no support for short tags in PHP. I was under the mistaken impression that only <? are considered short tags, not <?= as well, so this hasn't occured to me.

Hopefully it will be possible to change this using either ini_set() or htaccess or CI's $config['rewrite_short_tags']. Thanks again.




Theme © iAndrew 2016 - Forum software by © MyBB