Problem mit Smarty Setup

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Problem mit Smarty Setup

    Hallo,

    also ich habe das in einem anderen Forum vergeblich gepostet. Deswegen in Englisch. Bitte entschuldigt.

    A class page.class is inheriting from Smarty

    page.class.php is in the folder

    root/classes/design/page.class.php

    In the contructor of page.class I have:

    $this->Smarty();
    $this->smarty->template_dir = '/templates/templates/';
    $this->smarty->compile_dir = '/templates/templates_c/';
    $this->smarty->config_dir = '/templates/configs/';
    $this->smarty->cache_dir = '/templates/cache/';
    $this->caching = false;



    The templates are under:

    root/templates/templates
    root/templates/templates_c
    etc ...


    The following error message comes up:

    Smarty error: unable to read resource: "index.tpl" in N:\homepage\classes\smarty\libs\Smarty.class.php on line 1102


    I have been working on this problem for 2 days now. Driving me nuts!!!



    Could anybody help ?

    Thx

  • #2
    I have been working on this problem for 2 days now. Driving me nuts!!!
    wer weiß, ob du so schneller eine antwort bekommst ....

    Kommentar


    • #3
      Problem gelöst, Danke!

      Es muss heißen:

      $this->template_dir = 'homepage/templates/templates/';

      und nicht:

      $this->smarty->template_dir = '/templates/templates/';


      Gruß Compu

      Kommentar

      Lädt...
      X