07-30-2008, 09:17 AM
[eluser]Frychiko[/eluser]
Hi,
I started using CI yesterday to convert over an online price comparison shop, anyway this problem stopped me dead in my tracks.
I have an URL:
* manufacturer is my controller
* edit is a function within the manufacturer controller
I want to get a URI segment within the edit function with:
ie.
I tried 'n' with values from 0-3 but nothing is returned.
Perhaps I'm missing a configuration setting or something?
cheers,
Frychiko
Hi,
I started using CI yesterday to convert over an online price comparison shop, anyway this problem stopped me dead in my tracks.
I have an URL:
Code:
http://localhost/ci/manufacturer/edit/10
* manufacturer is my controller
* edit is a function within the manufacturer controller
I want to get a URI segment within the edit function with:
Code:
$this->uri->segment(n)
ie.
Code:
function edit() {
echo "segment:".$this->uri->segment(3);
}
I tried 'n' with values from 0-3 but nothing is returned.
Perhaps I'm missing a configuration setting or something?
cheers,
Frychiko