[nycphp-talk] single entry point
George Herson
gherson at snet.net
Tue Jul 30 11:17:18 EDT 2002
Jim,
Sounds like you might like to try Fusebox. (I haven't used it yet.) My notes
are that Fusebox is a tool that facilitates an
all-functionality-through-index.php approach.
http://nyphp.org/list/viewmesg.html?mid=81: "The example's containing index.php
are most likely mimicking 'fusebox' methodology, which is a great way to
organize files, especially if you are coding as part of a team or on a large
application. Its mainly been popular on ColdFusion applications but fairly
recently has been extended to PHP. Their are some nice code shortcuts and
re-usability advantages by going this route. Check out http://bombusbee.com/
for more info. regards, ken schwartz". 5/~1/02
Eg, article http://bombusbee.com/index.php?fuseaction=articles.view&id=6
More info that was kindly provided me:
> > A quick summary is that your application always runs through a single> >
template, the fusebox (index.php), that contains a huge switch with a case > >
representing an include of the each template that exists in the system > >
(called 'fuseactions'). So every form and href on your site is really > >
calling itself and makes coding a lot easier. The function of each of your > >
templates (fuses) are seperated and grouped so that you have fuses for > >
display grouped together, 'action' fuses (updates, inserts, etc.) together, > >
query fuses, etc. The point of the whole matter is that your system becomes > >
modular. If you need to find some code you know where to look. If you > > write
something new you know where to put it. And if you need to break a > > certain
part of the system to work on it, the rest of the system stays > > functional
because the fusebox is never broken itself, so you can always > > access the
other modules of the system.
George
More information about the talk
mailing list