(THIS IS A DUPLICATE, I FORGOT A TAG, PLEASE FORGIVE)
I'm writing a small CMS for a client using my own little framework and am running into one issue (not 100% sure it's an issue, but I'm sensing it will be).
So, for example, I have a News.php class that handles all of my Blog updates (CMS user input) and output (display of blog data on actual site). Now, because It makes me feel safer, I tuck all my classes that have to do with the CMS in a password protected "admin" folder.
The problem here arises when I need to utilize my nifty News.php class for the "View" layer of the site. I'm assuming since the class will be sitting in a password protected folder (admin/includes) anyone viewing the blog page will be prompted for the user and login for that folder in order to view the blog contents.
Is there a way of letting local files access password protected directories without being prompted for user and password info? (or does this happen?)
AND OR
Would you recommend storing my classes in a separate area of the site. I feel like the more locations I store my classes in the more complex my includes become, which can quickly turn into a nightmare. My ultimate goal would be to have ALL of my classes safely tucked away somewhere. Instead, as it is, I've been duplicating some classes for use outside or inside the admin directory.
Thanks in advance for the input.