Usually Zend Debugger works fine for me, but I've run into some strange problems like this too. Could never figure out what was actually causing it though.

Once it happened when I extended Zend_Controller_Action. I got the same 'Cannot redeclare class' error even when using Zend_Loader::registerAutoload(). Eventually I tried adding the Zend folder itself to the root of my ZDE project and it worked.

Another time I was trying out the proposal code of Zend_View Enhanced. I renamed everything to Zps_View but once again I got a 'cannot redeclare class' error with Zend_View_Abstract as the culprit. I stepped through the code, and it was occurring in Zps/View/ Abstract.php declaring Zps_View_Abstract. This time, adding the Zend and Zps folders to the root did nothing. I tried rebuilding inspection data but that didn't help any either.

I'm using ZDE 5.2.0 on OSX.

ncw

On 30-Jul-07, at 10:33 AM, Liao, Kexiao wrote:

Dear Zend Framework Development Team,
I am trying to use Zend Studio 5.5.0 IDE to Debug the demo codes (ZFGridDemo) from zend.com/webinar. Following error message show up when I try to execute following statement from zfgrid/document_root/ index.php file:

$db = Zend_Db::factory(
$config->database->adapter,
$config->database->params->toArray()
);
Fatal error: Cannot redeclare class Zend_Db_Adapter_Abstract in / home/liaok/wwwroot/ZendFramework-1.0.0/library/Zend/Db/Adapter/ Abstract.php on line 51

The Demo codes work well without using Zend Studio 5.5.0 Debugger function. Does that mean that Zend Studio 5.5.0 Debugger can not work for Zend Framework? Thanks for your comment.
 Kevin


=================================== Cleveland Clinic is ranked one of the top hospitals in America by U.S. News & World Report (2007). Visit us online at http://www.clevelandclinic.org for a complete listing of our services, staff and locations. Confidentiality Note: This message is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. Thank you.


Reply via email to