Dolphin082
Новичок
Дата регистрации:
29.01.2015 23:18:42
Сообщений: 6
Warning: session_start() [http://shopdvd.local/function.session-start]: Cannot send session cookie - headers already sent by (output started at Z:\home\shopdvd.local\www\index.php:1) inZ:\home\shopdvd.local\www\lib\modules_class.php on line 19
Warning: session_start() [http://shopdvd.local/function.session-start]: Cannot send session cache limiter - headers already sent (output started at Z:\home\shopdvd.local\www\index.php:1) inZ:\home\shopdvd.local\www\lib\modules_class.php on line 19
Fatal error: Call to undefined method Content::delivery() in Z:\home\shopdvd.local\www\lib\modules_class.php on line 32
вроди всё правельно прописанно, может на денвере что надо подключить в php.in
вот код
<?php
require_once "config_class.php";
require_once "url_class.php";
require_once "format_class.php";
require_once "template_class.php";
require_once "section_class.php";
require_once "product_class.php";
abstract class Modules {
protected $config;
protected $data;
protected $url;
protected $format;
protected $section;
protected $product;
public function __construct() {
session_start();
$this->config = new Config();
$this->url = new URL();
$this->format = new Format();
$this->data = $this->format->xss($_REQUEST);
$this->template = new Template ($this->config->dir-tmpl);
$this->section = new Section();
$this->product = new Product();
$this->template->set("title", $this->title);
$this->template->set("meta_desc", $this->meta_desc);
$this->template->set("meta_key", $this->meta_key);
$this->template->set("index", $this->url->index());
$this->template->set("link_delivery", $this->delivery());
$this->template->set("link_contacts", $this->contacts());
$this->template->set("link_search", $this->search());
$this->template->set("items", $this->section->getAllData());
$this->template->set("content", $this->getContent());
$this->template->display("main"
}
abstract protected function getContent();
}
?>
и index
<?php
require_once "start.php";
require_once $dir_lib."url_class.php";
$url = new URL();
$view = $url->getView();
$class = $view."Content";
if (file_exists($dir_lib.$class."_class.php") {
require_once $dir_lib.$class."_class.php";
new $class();
}
else {
}
?>