NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
$this is undefined in Prado classes


Joined: 30 Dec 2008
Posts: 1
Reply with quote
Hello and Happy New Year !
I'm using NuSpherePhpED Professional v5.5, PHP DBG Listener, version 3.4.1
and i'm coding base on Prado framework

I can debug smoothly except when i step into (F7) Prado classes and function where there is a $this. The debugger does not understand the class and return ($this: undefined = NULL) and throw an exception

php code
Code:

   $conn = TActiveRecordManager::getInstance()->getDbConnection();


TActiveRecordManager class file.
Code:

public function getDbConnection()
{
   return $this->_connection;
}

The browser output
Code:

TInvalidOperationException
Description
Component property 'TActiveRecordManager.Application' is not defined.


But if i use step over F8 , the above problem does not occur.

How can i fix the problem ?
Any help is appreciated
Thanks
View user's profileFind all posts by nhatkhangSend private message
$this is undefined in Prado classes
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic