Welcome Guest, Not a member yet? Register   Sign In
Controller not recieving my parameter
#1

[eluser]Joures[/eluser]
So i'm on my second day developing with CI and ran in to a little problem
i can't solve.

So, i got this anchor leading to localhost/folder_containing_ci/subcategories/display/1
where the number 1 is and id from the parent of that subcategory.

The thing is, when i click the link this error occurs: Undefined property: Subcategories::$id
And the display function looks like this:

Code:
<?php

class Subcategories extends Controller {
    
    public function display($id) {
        
     // fetching subcategories depending on $id
    }
}

Everywhere i look it says 'CI will pass down the parameter automatically'.

What am i doing wrong?


Messages In This Thread
Controller not recieving my parameter - by El Forum - 11-11-2010, 06:58 AM
Controller not recieving my parameter - by El Forum - 11-11-2010, 10:20 AM
Controller not recieving my parameter - by El Forum - 11-11-2010, 11:20 AM
Controller not recieving my parameter - by El Forum - 11-11-2010, 02:16 PM
Controller not recieving my parameter - by El Forum - 11-12-2010, 12:43 AM
Controller not recieving my parameter - by El Forum - 11-12-2010, 01:42 AM
Controller not recieving my parameter - by El Forum - 11-12-2010, 02:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB