I add a html page to the php website. After added, the webpage can run correctly, but thers is a line said Fatal error: Class 'EquipmentPage' not found in E:\2012\SIM Suite Project\wamp\www\test1\Web\equipment.php on line 7 at the bottom of the page. Can any one help me solve this problem.



define('ROOT_DIR', '../');

$page = new EquipmentPage();


require_once(ROOT_DIR . 'Pages/SecurePage.php');
<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">

    <!-- Uncomment if you don't use the .htaccess -->
    <!-- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> -->

    <meta name="description" content="Designa, HTML5 CSS3 Template by Sylvain Lafitte">
    <meta name="author" content="Sylvain Lafitte">

    <meta name="viewport" content="width=device-width">

    <link rel="shortcut icon" type="image/x-icon" href="../../favicon.ico">
    <link rel="shortcut icon" type="image/png" href="../../favicon.png">

    <link rel="stylesheet" href="css/style1.css">
    <link rel="stylesheet" href="css/nav.css">

    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<header class="center clearfix" id="navtop">
<a href="dashboard.php" class="logo fleft"><img src="img/bg_health_food_science.jpg" alt="Designa Studio" ></a>
<nav class="fright">
            <a href="dashboard.php" class="navactive">Home</a>

<div class="works center part clearfix">
      <header class="title">
            <p class="fleft">Products</p>
        <aside class="column4 mright">
            <p class="mbottom">All about Sim Suite. If you have any questions, please fell free to ask for help.</p>
            <menu class="work_nav">
                <a  id="work_all" class="arrow more buttonactive">All</a><br>
                <a  id="work_1" class="arrow more">CPR</a><br>

        <section class="columnthird content clearfix">

<figure class="work work_1">
                    <a href="schedule.php?sid=2" >
                    <img src="1.jpg" alt="" >
                    <span class="zoom"></span>
                        <a href="schedule.php?sid=1" class="arrow">CPR Child Manikin</a><br/>



<footer class="center part clearfix">
    <div class="up column3 mright">
        <a href="#navtop" class="ir">Go up</a>

    <nav class="column3">
            <li><a href="dashboard.php">Home</a></li>
            <li><a href="equipment.html">Equipment</a></li>
            <li><a href="login.html">Login</a></li>
            <li><a href="booking.html">Booking</a></li>

<script src="http://code.jquery.com/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/jquery-1.5.1.min.js"><\/script>')</script>
<script src="js/scripts.js"></script>

<!-- Prompt IE 6 users to install Chrome Frame. -->
<!--[if lt IE 7 ]>
  <script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>

<!--[if (gte IE 6)&(lte IE 8)]>
<script src="js/selectivizr.js"></script>


Recommended Answers

All 3 Replies

The error states that it cannot find ../Pages/EquipmentPage.php or the class EquipmentPage is not in it.

The file EquipmentPage.php is in the Pages file and it can run correctly. But it still show this message.

Then it must be a path issue.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.