CodeIgniter Forums
CI & IIS: Selects the controllers right, but doesn't execute the code? - 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: CI & IIS: Selects the controllers right, but doesn't execute the code? (/showthread.php?tid=3745)



CI & IIS: Selects the controllers right, but doesn't execute the code? - El Forum - 10-19-2007

[eluser]jimmy0x52[/eluser]
Hi,

I've got CI running on IIS. I've got it running with ISAPI_rewrite and can successfully access my controllers using

http://www.website.com/index.php/controllername

The problem is the controller contents come up and are not rendered/executed by PHP/CI. I get the actual code spit out at me.

Does anyone have any ideas why this is? I've got PHP installed as an ISAPI module with the correct web service extensions - and I know that rewrite is working because I can switch between controllers - it just will not render the output once it's grabbed from the controller.

Anyone have this issue as well? I can't seem to find an answer.


CI & IIS: Selects the controllers right, but doesn't execute the code? - El Forum - 10-22-2007

[eluser]jimmy0x52[/eluser]
Site I was using was using <? instead of <?php and on a new install of PHP it doesn't allow for the shortened version.

Always a stupid solution.


CI & IIS: Selects the controllers right, but doesn't execute the code? - El Forum - 10-22-2007

[eluser]Michael Wales[/eluser]
Rather than go through and change all of your <? to <?php you could have CI rewrite the short tags for you. It will suck up a small amount of resources, but it's a solution...


CI & IIS: Selects the controllers right, but doesn't execute the code? - El Forum - 10-22-2007

[eluser]jimmy0x52[/eluser]
There's a config in the php.ini that you can set to allow short tags. No rewriting necessary.