Last active
October 20, 2015 08:20
-
-
Save PetengDedet/912f09e5faa14cc97cdc to your computer and use it in GitHub Desktop.
Well... if you set get_menu(2) it's normal to receive only those institutions because you simply told the function that you want the elements that start from id 2, namely the elements that either have parent id 2 or id 2.
yeah, but it give me nothing
return self::html_ordered_menu($res_array,$id);
why are you using "self::" and not "$this->"? are you working with static methods?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is my table structure
and this is Institution_model
and this is the controller
i mean when i passed a parameter into
get_menu($id)
function, it will give me institution where the id passed and it's childs .So whenever i passed '2' into
get_menu($id)
it give me institution 2 and 3.