|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
oskarr Smarty n00b
Joined: 25 Oct 2004 Posts: 3
|
Posted: Fri Nov 05, 2004 11:00 pm Post subject: Fatal error: Class ocms: Cannot inherit from undefined class |
|
|
Code: | <?php
//-------------------------------
// Smarty-Library-Dateien-laden
//-------------------------------
define ('SMARTY_DIR','http://localhost/CMS/class/smarty/');
require(SMARTY_DIR.'Smarty.class.php');
//------------------------------
// Smarty-Library-erweitern
//------------------------------
class OCMS extends Smarty {
//-------------------------------
// Performance-Steigerungs-Var
//-------------------------------
var $_canUpdateFromFile = false;
function OCMS()
{
//----------------------------------------------------------------------
// Konstruktor.-Diese-Werte-werden-für-jede-Instanz-automatisch-gesetzt.
//----------------------------------------------------------------------
$this->Smarty();
$this->template_dir = '/web/localhost/CMS/templates/';
$this->compile_dir = '/web/localhost/CMS/templates_c/';
$this->config_dir = '/web/localhost/CMS/templates/configs/';
$this->cache_dir = '../cache/';
//------------------------------
// Template-Tags-Bestimmung
//------------------------------
$this->left_delimiter = '<{';
$this->right_delimiter = '}>';
$this->caching = true;
$this->assign('app_name','OCMS');
}
}
?> |
Ich habe dieses Problem, wenn ich Smarty erweitert konfigurieren möchte:
Fatal error: Class ocms: Cannot inherit from undefined class smarty in E:\SERVER\Apache2\htdocs\CMS\class\template.php on line 28 |
|
Back to top |
|
kills Smarty Elite
Joined: 28 May 2004 Posts: 493
|
Posted: Sat Nov 06, 2004 11:15 am Post subject: |
|
|
ein include/require macht man auch nicht über das http protokoll.
einfach den absoluten/relativen systempfad angeben. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|