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 |
 |
 |
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
|
|
|
 |
|