PHP не может найти мой класс?
Как я могу указать точный абсолютный путь?
Файл здесь. Я указал это так:
include "/home/core/public_html/d/core/source/class.Control.php";
Да ведь это говорит мне, что это не так.
* Фатальная ошибка: класс 'Control' не найден в /home/core/public_html/d/core/source/class.ControlEntry.php в строке *
Код
<?php
class ControlEntry
{
private $control_object;
function __construct( $control_object )
{
$this->control_object = $control_object;
}
public function actuate()
{
if( isset($_POST['ajax_type']) )
{
$this->control_object->ajax( $_POST['ajax_type'] );
}
else
{
$this->control_object->reload();
}
}
}
include "/home/core/public_html/d/core/source/class.Control.php"; // Can not find this f***ing file even though it is there.
$control_entry_object = new ControlEntry( new Control() );
$control_entry_object->actuate();
Список устранения неполадок