4 ms·
Perhaps my PHP-design skills are outdated, but is it normal to have a 1500 line index.php containing a mixture of configuation code, PHP functions and HTML? A
by brinchj 16y ago
Perhaps my PHP-design skills are outdated, but is it normal to have a 1500 line index.php containing a mixture of configuation code, PHP functions and HTML?
Also, don't you use any template system?
... I cloned the github project, only to find myself confused :)
- michaelchisari 16y agoThe index.php file is the install file. The actual system is re-routed using mod_rewrite. After installation, it never uses index.php again. Also, don't you use any template system? No, actually, I use a different approach. Using simple_html_dom, I target the dom within the controller. The views are layout skeletons that are then populated with data. Check out the example component's comments for more info.