I'm just experimenting with building a site, and want to follow a patten I have used elsewhere...
Say my folder is called "WebSite1". Within that I have public_html which will contain all client-facing code and assets...
But outside it I want a folder called "Classes" that will contain my business objects. Also I'd like to have a config.whatever that contains things such as database connections.
I know this can be leveraged through Zend for example, but am looking at my own way to do this. Can someone tell me how?
Nice rant!
Expletive after expletive after expletive.
Poor petal, I've touched a nerve. Would you like a tissue to wipe those tears away.
Btw, nice one calling Neowin trash. Why would you stick around when you disrespect this site and the people behind it? Just go away if you feel that way.
Question
+Nik Louch Subscriber²
I'm just experimenting with building a site, and want to follow a patten I have used elsewhere...
Say my folder is called "WebSite1". Within that I have public_html which will contain all client-facing code and assets...
But outside it I want a folder called "Classes" that will contain my business objects. Also I'd like to have a config.whatever that contains things such as database connections.
I know this can be leveraged through Zend for example, but am looking at my own way to do this. Can someone tell me how?
Ta
Link to comment
https://www.neowin.net/forum/topic/842414-php-classes-and-config-outside-public_html/Share on other sites
12 answers to this question
Recommended Posts