1

I just installed a Codeigniter application on Windows 7 IIS in my local computer.

The routes are ok and the controllers seem to be loading the views, but the PHP scripts on them do not show the passed variables and are interpreted as HTML.

PHP scripts run ok without Codeigniter.

Any clues?

4
  • can you post an example PHP script that is not running? CI handles URL queries differently unless told so and your code may not be accessing the request vars correctly. Commented Nov 29, 2012 at 15:33
  • @cryptic any script.. for example: <? echo $variable; ?> where $variable is passed from the controller to the view. Commented Nov 29, 2012 at 15:49
  • ah ok so you're saying the values passed the 2nd argument for $this->load->view() are not accessible? If so can you post me the code of how you are passing the value? Commented Nov 29, 2012 at 15:55
  • 1
    Nope... the values are passed OK. I thik I got it! The PHP version that comes with ISS requires the <?php sentence to be declared, <? won't work. Commented Nov 29, 2012 at 16:12

1 Answer 1

1

The PHP version that comes with ISS requires the PHP sentence to be declared.

<?php

The new opening by itself won't work.

<?
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.