I would like the experts to give me some suggestions in organizing my code in PHP. Usually what i do is that i break the code into multiple files, and then include(); them all into a master file. this makes it easier for me to debug the code but the program gets slow. So, masters of programming, please suggest me something.
I would like the experts to give me some suggestions in organizing my code
Share
Looking at Autoload PHP5 OOP Manual Page
you can see that an Autoloader can be “crawl” into directories for “find out” classes.
you can set it up (as suggested, and as in MVC like Zend happend) for crawl directory creating classes like Connector.class.php that is placed into site/DB/ folder and called as: new DB_Connector()