CI & IIS: Selects the controllers right, but doesn't execute the code? |
[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.
[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.
[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...
[eluser]jimmy0x52[/eluser]
There's a config in the php.ini that you can set to allow short tags. No rewriting necessary. |
Welcome Guest, Not a member yet? Register Sign In |