Okay, thanks to Phillip's testing in a more real-life environment, I have updated the code once more to check if the functions and classes are defined before I...
Hello I wanted to check with the group to see if the source already exists? I am working on a very complex php fusebox application and really need to develop a...
I'm fairly new to Fusebox 2 and I've just recently become acquainted with Fusebox 3 for PHP. I thought I understood what a XFA was; in practice, though, I...
Take a look at this example, it's really simple but basic idea should become clear when you understand it. It's simple feedback form for bigger application...
I'll give this a go... To start, XFAs are not required by Fusebox at all. They are very convenient and can save a lot of time over the long run, but they are...
XFAs are used as aliases to determine communication between fuses. In your site content, any links to other sections should use XFAs. Here's an example of a...
Thanks so much for all your help. Between the three posts I've seen so far I've think I've got a handle on XFAs finally. Damn I love this forum! You guys...
i was wondering what people's thoughts were on implementing classes verses includes in their fbx_Switch file. in other words, instead of the following: case...
It wouldn't improve in performance. It might in some cases, but overall architecture should be different, IMHO, so it can't be compared. In fbx_Switch.php file...
Clearly this does not break Fusebox at all. You are not even required to use a switch statement in the fbx_Switch file... I'd love to see some benchmarks ...
i thought there may be a performance increase due to the fact that class files could remain persistent in memory, i.e., you could initialize an "navigation"...
Oh, I see-- I think the difference here is that with PHP, a class only persists as long as the request is processing. In other OO languages, an object can...
Personally I find includes more readable in fbx_switch. I also use classes quite heavily to reduce my development time eg I wrote a recordset class that...
... "i was wondering what people's thoughts were on implementing classes verses includes in their fbx_Switch file." ... "Personally I find includes more...
hi david, thanks for the insight. i also have a 'stopwatch' class that i use in debug mode to show execution time. how do you integrate your class into your...
Hi, David. Is the Module() can be make work not only at Main Circut. But also at any child Circuits. Regards Eko http://www.haltebis.com...
Boy Next Door
ekobudi@...
Apr 3, 2002 7:56 am
693
... So the action class has a bunch of methods like DoSomething(), DoSomethingElse() etc? If so then the class file will eventually grow too big and you lose...
Perhaps my way is a poor way, but I tend to include class definitions in the fbx_settings file. That way the class is available everywhere, and depending on...
It ain't poor. db connectivity class is used in entire application, and not in a single fuse only. It's normal to have application-wide used classes defined...
erki! I didn't know you toyed with PHP! :) Cheers, Keith. ... So the action class has a bunch of methods like DoSomething(), DoSomethingElse() etc? If so then...
... correct. the idea is to encompass most of the business logic in the action class, instead of in the fbx_Switch file. There could be several action classes,...
Hey all, I am sufferring a major brain cramp here. What's wrong with the logic below? Its all one page calling itself. Why doesn't the $_SESSION variable...
If you ask me, it's a stupid question whether include files or classes are better. They are no alternatives. Like Michael Kimsal said: "We 'include' files with...
Ferdinand Beyer
fbeyer@...
Apr 3, 2002 8:09 pm
700
You need session_start(); before any use of $_SESSION array :) Cheers, Mindaugas...
ok...that totally sucked :) I had myself completely convinced I didn't need to do that with the new $_SESSION global :) *sigh* live and learn :) Thanks...
Easy to be confused there-- I think the new deal is that you don't have to use session_register() anymore... You still have to start the session, I guess... ...
I have the same problem, is it something i have to toggle in the .ini file? calvin __________________________________________________ Do You Yahoo!? Everything...
I think the consensus was that you have to either use session_start() in your root fbx_Settings.php file, or you can also set session.auto_start on in the ...