Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Fatal error: Class ocms: Cannot inherit from undefined class

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: German
View previous topic :: View next topic  
Author Message
oskarr
Smarty n00b


Joined: 25 Oct 2004
Posts: 3

PostPosted: Fri Nov 05, 2004 11:00 pm    Post subject: Fatal error: Class ocms: Cannot inherit from undefined class Reply with quote

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
View user's profile Send private message
kills
Smarty Elite


Joined: 28 May 2004
Posts: 493

PostPosted: Sat Nov 06, 2004 11:15 am    Post subject: Reply with quote

ein include/require macht man auch nicht über das http protokoll.

einfach den absoluten/relativen systempfad angeben.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: German All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP