Jump to content

class FACILITY not found


Yohanne

Recommended Posts

Like trq said, you need to include the class "facility" so that the class "home" knows it exists.

Try to add this at the top of your "home.php" file: 

<?php
 require('facility.php');
?>

Otherwise, you're telling PHP : Hey, make the class "home" by extending the class "facility". Then PHP tells you: What the hell is the class facility?  (it doesn't scan all the files alone, you need to tell PHP what are the file needed to execute your code).

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.