News for hackers. Stuff that matters.
Re:Help fund an open source Facebook alternative: Appleseed by brinchj on Sunday October 17, 2010 @01:16PM (#1800820)
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 :)

Re:Help fund an open source Facebook alternative: Appleseed by michaelchisari on Sunday October 24, 2010 @01:05PM (#1826541)
The 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.