[Phpslash-devel] Very minor debugging suggestion for lib.resources.php
Brought to you by:
joestewart,
nhruby
From: Mike G. <mi...@op...> - 2003-07-10 14:57:31
|
Howdy, in lib.resources.php, the function pslNew could be slightly easier to debug in the future if the declared classes could be output more easily: else { // print_r(get_declared_classes()); pslError("No such class: $class"); return false; } I was trying to figure out why the heck pslNew wasn't working for a new class I was developing and finally figured out that I hadn't quite changed the class name correctly.... You can't pass arrays to the debug function very well.. I suppose you could serialize them so debug('List of classes',serialize(get_declared_classes())); In anycase just a thought.. Mike -- Mike Gifford, OpenConcept Consulting Free Software for Social Change -> http://www.openconcept.ca Featured Client: CUPE National -> http://www.cupe.ca Whoever controls the media-the images-controls the culture - A. Ginsberg |