3 ms·
That's what autoload is for. It's been around since PHP 5.0. http://php.net/manual/en/language.oop5.autoload.php http://php.net/manual/en/language.oop5.autoload
by asnyder 16y ago
That's what autoload is for. It's been around since PHP 5.0. http://php.net/manual/en/language.oop5.autoload.php http://php.net/manual/en/language.oop5.autoload.php and allows you to require the necessary files or classes only when you need them. Seems like they solved this problem to me.
- gaoshan 16y agoI use frameworks (Zend, CodeIgniter) for all PHP projects except protoyping HTML templates (like, when knocking out a quick page with placeholder data and functionality to show a client). The hate poured on PHP for functionality that I have never, ever used (read pretty much any "PHP sucks because..." post and notice that the majority of the complaints are for things that real PHP developers are well aware of and effortlessly deal with) gets tiresome to hear about. Use it following some basic, current, best practices and it is fast, easy and perfectly fine for developing with.
- jacquesm 16y agoThank you! I must have missed that bit in the announcements.