开发者

Fatal error: Class NAME not found in (....PATH)?

What may be the problem if i get the following error.

while i am extending a class i got this error

example:

class ModuleUser extends AbstractModule

Fatal error: Class AbstractModule not found开发者_如何学Go in (....PATH) ?

I have done most of the possibilities... But i can't resolve the problem.

any help will be thankful

thanks n advance

Fero


Prior to your definition of ModuleUser, import the file that contains the definition for AbstractModule.

require_once 'path/to/abstract_module.php';

If both classes are in the same file, then make sure you define the class ModuleUser after you define AbstractModule.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜