I am fairly new to PHP but have a project in mind and would like to force myself to learn as I go here. So I am using SB Admin 2 as a frontend template. I have a very basic login/logout working after having to completely scrap the old one I had to lieu of using prepared statements.
Im at the point where I am trying to decide how to hide/display content depending on the user role I specified. Does it make more sense to just create an admindashboard.php and userdashboard.php, or to hide the content in php (such as menu items in my sidebar) based on the user roll itself and have one dashboard.php. I saw someone mention a backend templating system and from my searching I see twig being pretty popular but cant find anything that really tells me this is the right track. Can someone point me to any documentation that might help with this? Thanks