Is there anything that can be done to address wizards placing php code in the proper sequence? This has happened to me a number of times, where dependent files are included after the code that depends on them.

I have tried to find the steps that would reproduce having the code placed in the wrong order, but have not been able to. If we could identify the circumstances that the problem occurs in, we could find and fix the problem, but without being able to reproduce, it is very difficult to fix. I'll keep my eye out and if I can identify the steps to reproduce, i will log a bug.