SyntaxFix
Write A Post
Hire A Developer
Questions
$sidemenu is not an object, so you can't call methods on it. It is probably not being sent to your view, or $sidemenus is empty.
$sidemenu
object
view
$sidemenus