Hi,
I'm starting to use Phalcon.php and AdminLTE stylesheet. I'm trying to do an "active" sidebar menu.
i.e : i'm on default view (index on main controller), i load the layout (main) with different elements and the sidebar. When i'm on the index, the button index in my view is set as "active" (bootstrap class) and my button is show as active (nomal). Now i go to an other view, i click on the right button and my active class is remove to the default button (index) instead of my new button link to the right class/controller.
It's a simple bootstrap feature and i used it on other project but i don't know why in phalcon the class is reset. It's like my main layout is refreshed each time i go to an other action instead of just loading the content view. I saw an example with sidebar on an element class and called in layout with {{ elements.MyMethodWhoSetTheSideBar() }}.
So i'm asking if it's a good practice to set a menu or if i'm using wrong layout on phalcon ?