[eluser]NateL[/eluser]
Using Adam Griffiths' Auth Library and I'm wondering if it's possible to have an admin element on a page that is not in the Admin backend.
For example, my structure looks like this:
controllers/
--admin
----admin.php
----users.php
----upload.php
--project.php
Now, if someone goes to example.com/project/*id*, it pulls up the project info.
However, if I am an Admin, and I've already logged in - and I go to that page to view it, I still want to see some Admin navigation elements - such as "upload to this project" or something like that.
is it as simple as running a conditional statement?
if authenticated -> display nav menu
Another scenario - Think about WordPress...when you are making changes in the Admin panel, and then you click "View Post" - at the bottom of that post, there is a link that says "Edit this post" or "edit this page".