class not found?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
granite
Forum Commoner
Posts: 44
Joined: Mon Feb 09, 2009 10:52 am

class not found?

Post 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.
User avatar
highjo
Forum Contributor
Posts: 118
Joined: Tue Oct 24, 2006 1:07 pm

Re: class not found?

Post 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
}
?>
granite
Forum Commoner
Posts: 44
Joined: Mon Feb 09, 2009 10:52 am

Re: class not found?

Post by granite »

:) Thanks!! :wink:
Post Reply