Welcome Guest, Not a member yet? Register   Sign In
Multiple Pages (404 errors)
#3

[eluser]missionsix[/eluser]
[quote author="Fenix" date="1219454895"]This is how CI uses clean URLs instead of ?page= junk:

www.yourpage.com/page/23
Code:
function page($page = "default")
    {
        echo 'This is page: '.$page.'<br/>';
    }

would output:
Code:
This is page: 23


I don't know if this helps... you're question is kind of vague to me[/quote]

this would be correct if you routed /page/:num to "gms/page"


you would do this:


Code:
class gms {
   function gms() {
      ...
}
   function index() {
     ...
  }
  function page() {
    $page = $this->uri->segment(3);
    print 'viewing page'. $page;  
}
}

then go to : index.php/gms/page/1/

would output

Code:
viewing page 1



oh and:
Quote: echo '<li><a >page.'">'.$row->page.'</a></li>';
wtF?!


Messages In This Thread
Multiple Pages (404 errors) - by El Forum - 08-22-2008, 09:16 AM
Multiple Pages (404 errors) - by El Forum - 08-22-2008, 02:28 PM
Multiple Pages (404 errors) - by El Forum - 08-22-2008, 04:08 PM
Multiple Pages (404 errors) - by El Forum - 08-23-2008, 12:19 PM
Multiple Pages (404 errors) - by El Forum - 08-23-2008, 05:12 PM
Multiple Pages (404 errors) - by El Forum - 08-23-2008, 05:19 PM
Multiple Pages (404 errors) - by El Forum - 08-23-2008, 05:20 PM
Multiple Pages (404 errors) - by El Forum - 08-23-2008, 05:32 PM
Multiple Pages (404 errors) - by El Forum - 08-23-2008, 06:57 PM
Multiple Pages (404 errors) - by El Forum - 08-23-2008, 07:13 PM
Multiple Pages (404 errors) - by El Forum - 08-23-2008, 07:25 PM
Multiple Pages (404 errors) - by El Forum - 08-23-2008, 08:59 PM
Multiple Pages (404 errors) - by El Forum - 08-23-2008, 09:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB