|
Posted by AnrDaemon on 10/24/07 23:25
Greetings, turnitup.
In reply to Your message dated Thursday, October 25, 2007, 00:52:55,
t> I am in the process of transforming a procedural code base into an OO
t> code base. The code lends itself to this refactoring and it is proving
t> an effective exercise.
t> However, I am running into a few irritations.
t> I am using __autoload to load class files corresponding to code names.
t> I've cranked up error reporting, but if for some reason there is a
t> syntax error or whatever in a class, the application crashes with no
t> explanation. The bug hunt takes ages and lots of echoing.
t> Is there anything I can do to help myself? Use of assert, or exceptions,
t> or try-catch handling?
Did You read user comments on Autoloading Objects article?
http://ru2.php.net/autoload
There's some useful info and good examples.
--
Sincerely Yours, AnrDaemon <anrdaemon@freemail.ru>
[Back to original message]
|