Page 1 of 1

class not found?

Posted: Fri Feb 27, 2009 11:31 am
by granite
Hey there, men!

I'm recieving the following error when the class 'bancodados' try extending

Code: Select all

class bancodados extends funcoes{
'funcoes'. Yes, the 'funcoes' class exists.

Here goes the error:
Fatal error: Class 'funcoes' not found in D:\Sites\webmarcas.com.br\www_v3\administrador\classes\class_bancodados.php on line 6

Can you help me?

Thanks in advance.

Re: class not found?

Posted: Fri Feb 27, 2009 12:03 pm
by highjo
you have to include the class at the top of your code

Code: Select all

<?php 
include_once('path_to_funcoes_parentfolder/funcoes');
class bancodados extends funcoes
{
//your codes
}
?>

Re: class not found?

Posted: Fri Feb 27, 2009 12:09 pm
by granite
:) Thanks!! :wink: