11-14-2016, 04:27 PM
You don't need to use things like $user->data()->id
You can put any id there...even something like
checkMenu(4,1))
Would work.
Personally, I would show and hide menu options with just a simple if statement. Do the query you want to do and write an if statement.
You can put any id there...even something like
checkMenu(4,1))
Would work.
Personally, I would show and hide menu options with just a simple if statement. Do the query you want to do and write an if statement.