WebWork Magazin - Webseiten erstellen lassen, Online Medien, html

Webhoster, Webhosting Provider und Domain registrieren

Home | Registrieren | Einloggen | Suchen | Aktuelles | GSL-Webservice | Suleitec Webhosting
Reparatur-Forum | Elektro forum | Ersatzteilshop Haushalt und Elektronik



Im Homepage und Webhosting-Forum --- Smarty & PHP5

Scripte und Programme für PHP, MYSQL. Diskussionen zur Programmierung im Web. Fragen zu CMS, Blogsoftware, Shops, Newsletter und vielen weiteren Scripten.

Forum » PHP & MySQL » Smarty & PHP5 - 16 April 2024 Antworten
im Forum für Webhosting Homepage gefunden:
Smarty & PHP5
aykut
Otto-Normal-Poster
Threadstarter




Beiträge: 83

Hi,

mein smarty Konfiguration läuft 99%, für 1% bräuchte ich eure Hilfe!

zZ benutze ich folgende Verzeichnisse, auf die werde ich in meinen Fragen eingehen.

root/
projectX/
+---smarty
¦ +---cache
¦ +---compiles
¦ +---configs
¦ +---libs
¦ ¦ +---internals
¦ ¦ +---plugins
¦ +---templates


/root/projectX/smarty/smarty_connect.php
1: 
2: 
3: 
4: 
5: 
6: 
7: 
8: 
9: 
10: 
11: 
12: 
13: 
14: 
15: 
16: 
17: 
18: 
19: 
20: 
21: 
22: 
23: 
24:
Smarty();

		$this->template_dir = $fixpath."/templates";		
		$this->config_dir = $fixpath."/configs";
		$this->compile_dir = $fixpath."/compiles";
		$this->cache_dir = $fixpath."/cache";

		$this->assign('app_name', 'Intranet');
		
		$this->caching = true;
   }
}
?>


/root/projectX/index.php
1: 
2: 
3: 
4: 
5: 
6: 
7:
display('index.tpl');

?> 


wichtig: die aufgerufene tpl Datei ist in dem selben Verzeichnis wie der Aufrufer php Datei
/root/projectX/index.tpl
1: 
2: 
3: 
4: 
5: 
6: 
7: 
8: 
9: 
10:
   
      
         Beschreibung der Seite
      
      
            TEST
      
   


Ich bekomme folgende Meldung:
1: 
2:
Warning: Smarty error: unable to read resource: "index.tpl" in 
C:\Programme\Apache Group\Apache2\htdocs\friseur\smarty\libs\Smarty.class.php on line 1095


Wenn ich in dem index.php den Pfad von index.tpl nach ../../index.tpl ändere dann läufts!
/root/projectX/index.php
1: 
2: 
3: 
4: 
5: 
6:
display('../../index.tpl');

..
?> 


Mein Problem: php und tpl sind jeweils in dem selben Verzeichnis, (so will ichs haben).

Bsp:

root\index.php
root\index.tpl
Zugriff von php via $smarty->display('index.tpl');

or

root\subdir\display.php
root\subdir\display.tpl
Zugriff von php via $smarty->display('display.tpl');


Wie kann ich das Problem lösen?

danke Aykut


Diese Nachricht wurde geändert von: aykut
  Profil   Editieren   Zitieren
 

Antworten
Forum » PHP & MySQL » Smarty & PHP5

Aktuelle Beiträge zur Hilfe im Forum für Homepage - Smarty & PHP5 im Forum Homepage Hosting AntwortenLetztes Posting
Best online slots
in "PHP & MySQL"
0 23.01.2023 22:40 von Sevetr
Rangliste (Ohne Mysql) (Kompliziertes Ordner System)
in "PHP & MySQL"
3 19.07.2021 06:00 von newtopblog
kleines problem mit phpadmin
in "PHP & MySQL"
5 11.04.2021 22:22 von Zavylon
Counter mit PHP
in "PHP & MySQL"
4 22.03.2021 16:29 von Robeni
Fehlermeldung beim Importieren der Datenbank in phpmyadmin
in "PHP & MySQL"
0 02.08.2019 22:14 von iFuchs
CMS für Online Shop
in "PHP & MySQL"
18 26.05.2019 13:29 von raiserle
Regestrierungproblem
in "PHP & MySQL"
3 28.11.2018 13:20 von norbertofahey
PHP Datum ausgeben?
in "PHP & MySQL"
1 19.10.2018 10:04 von Klaus1973
PHP befehl ausführen
in "PHP & MySQL"
11 16.08.2018 09:08 von Klaus1973
Visual Composer selber programmieren?
in "PHP & MySQL"
0 22.01.2017 23:45 von Redji
php preg_replace_callback für dynamischen Link
in "PHP & MySQL"
0 05.07.2016 11:02 von Rm21
PHP Code verschlüsseln
in "PHP & MySQL"
20 21.02.2016 21:25 von Kilian1
migrierter WP-Blog läuft nicht ...
in "PHP & MySQL"
0 04.02.2016 02:01 von Oxygon



Besucher : 7980472    Heute : 99     Gestern : 314     Online : 17     16.4.2024    8:30      2 Besucher in den letzten 60 Sekunden        
alle 30.00 Sekunden ein neuer Besucher
Nach oben