Welcome Guest, Not a member yet? Register   Sign In
Controller in subfolder, url parameters offset
#3

[eluser]bhogg[/eluser]
[quote author="msteudel" date="1272445925"]I have a controller in a subfolder
...
Question 1
Is this the right format? vs. admin/school/update/9
[/quote]

If the function in admin/school.php is

Code:
function update($id)

then you should be calling admin/school/update/9

Quote:Question 2
What's the right way to get id parameter?

With the above you would just look at the value of $id


Messages In This Thread
Controller in subfolder, url parameters offset - by El Forum - 04-27-2010, 10:12 PM
Controller in subfolder, url parameters offset - by El Forum - 04-28-2010, 03:49 AM
Controller in subfolder, url parameters offset - by El Forum - 04-28-2010, 03:52 AM
Controller in subfolder, url parameters offset - by El Forum - 04-28-2010, 03:57 AM
Controller in subfolder, url parameters offset - by El Forum - 04-28-2010, 11:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB