So with finishing the tutorial and ofcourse adding a few features, i moved onto my admin panel,taken in the suggestions from the last post I have designed this around the "role" system. Each user at login as there "title" checked, which will display a menu system based on there title/rank.
Now fully separating the admin panel from the normal users i created a "admin" folder in my htdocs, in which i moved my admin index,header,footer, and all corresponding files that differ from the normal users UI. Now to call the files from the admin folder was easy
header('Location: admin/adminindex.php');
My dilemma is however, how do i go backwards? yes it will load and properly display the /admin folder, but without copying over smarty.php,and login-check.php etc into my admin folder, it will not load.So how would I display from the /admin folder, yet pull library's from the /root folder? I am certain it has to do with specifying a correct location for the file, just unsure how to call a parent item from a subfolder.