CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 A newbie problem: Parent object is not recognised.

Print topic Send  topic

Author Message
Daniella S.
Posted: 04/14/2005, 1:23 AM

Hi,
Working with the example TaskManager included in CCS I get this error:

'No parent class available in this context in ./Common.php on line 182'

The example is generated as is, without changes. The generated code is
something like that:

...

include(RelativePath . "/db_mysql.php");

...

class clsDBMyConnection extends DB_MySQL


...

function query($SQL)


...

return parent::query($SQL); //line 182

}

}

...

Class DB_MySQL exists in file 'db_mysql.php'. When I substitute 'parent'
with 'DB_MySQL' everything goes well.

So why 'DB_MySQL' is not recognised as 'parent' ?

Working with CCS 2.3.2.24 / Apache 1.3.14 / PHP 4.0.3 / MySQL 3.23.28 /
MySQL ODBC 3.51 under Win2k Pro SP4.




Thanks in advance,

Daniella


Nicole

Posts: 586
Posted: 04/14/2005, 4:49 AM

Daniella,
As I know you can upgrade PHP version to avoid the error.
If it is not possible you can remove/common query() function in Common.php

_________________
Regards,
Nicole
View profile  Send private message
Daniella S.
Posted: 04/14/2005, 7:44 AM

> As I know you can upgrade PHP version to avoid the error.

Thanks, that seems to fix the problem.

Daniella


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.