Welcome Guest, Not a member yet? Register   Sign In
URI Segment question
#1

[eluser]pmonty[/eluser]
I am running CI on a windows server box. I am using the ? syntax in my url's.
For example: mysite.com/index.php?/mytest

This works fine to call the controller which is shown below.
Code:
<?php
class Mytest extends Controller {
  function index()
  {
    if ($this->uri->segment(2) === FALSE) {
      $period = 1;
    } else {
      $period = $this->uri->segment(2);
    }
    echo $period;
  }
}
?>
However, this url mysite.com/index.php?/mytest/2 gives a page not found 404 error.
Shouldn't the mytest controller be called and processed? What am I missing?

Paul


Messages In This Thread
URI Segment question - by El Forum - 08-07-2007, 12:13 PM
URI Segment question - by El Forum - 08-07-2007, 01:03 PM
URI Segment question - by El Forum - 08-07-2007, 01:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB