Welcome Guest, Not a member yet? Register   Sign In
Creating Dynamic Pages
#2

[eluser]ramm[/eluser]
I'm guessing you have a controller named "page.php" which contains a method called "news($id)".

If thisd is correct, you can try doing something like:
Code:
//within your page.php controller

function news($id)
{
    $id = $this->uri->segment(5);
    echo $id;
    die();
}

And then call your url http://localhost/page/news/something/xx

You should get "xx", if you don't, there something else wrong with your site configuration.


Messages In This Thread
Creating Dynamic Pages - by El Forum - 02-24-2011, 03:14 PM
Creating Dynamic Pages - by El Forum - 02-24-2011, 03:55 PM
Creating Dynamic Pages - by El Forum - 02-24-2011, 04:52 PM
Creating Dynamic Pages - by El Forum - 02-24-2011, 06:25 PM
Creating Dynamic Pages - by El Forum - 02-24-2011, 09:37 PM
Creating Dynamic Pages - by El Forum - 02-25-2011, 03:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB