Re: Re: [PHP]need an opinion on this idea of mine...!!
| From: | olsonric at otn dot net | Date: | Mon, 09 Jul 2001 22:43:11 +0000 |
| Subject: | Re: Re: [PHP]need an opinion on this idea of mine...!! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-57018@lists.php.net to get a copy of this message | ||
>In a nutshell, you've just described the 'fusebox' method. Originated
>under Cold Fusion, there are
>movements to port this style to PHP and ASP, and probably other platforms.
>
>It's not bad, but personally, I think it's a bit weak in some cases -
>we've taken it a step further in house,
>but the idea is similar.
>
>fusebox.org has more info on this style.
Okay, what's weak about it? I've long pondered this question myself. I have a modular
script and I've debated between having a big switch statement on the index calling functions
that are declared in include files... or splitting the switch statement into each include file with
it.
Overall though, this approach has worked well for me. But, in my limited scripting experience, I
may be missing some pros and cons on it. I'm still figuring out the best way to lay out my
functions and such.
PHPBuilder has an article about web box, a PHP implementation of fusebox: http://www.phpbuilder.com/columns/bill19990831.php3
rick