[eluser]msteudel[/eluser]
I have a controller in a subfolder
e.g.
admin/school.php
On my index action I have a list of schools and I want to pass the id through the url
e.g.
admin/school/update/id/9
Question 1
Is this the right format? vs. admin/school/update/9
Question 2
What's the right way to get id parameter? I tried to do:
$uri = $this->uri->uri_to_assoc()
And I print that array out I get:
Array
(
[update] => id
[9] =>
)
I can do
$this->uri->uri_to_assoc(4) and I get the right association match up. But I wondering if there is a less manual way for the system to figure this out?
TIA