|
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 |
JohnyHC Smarty n00b
Joined: 22 Feb 2005 Posts: 2
|
Posted: Tue Feb 22, 2005 9:54 pm Post subject: Umstellung auf PHP5 jetzt gibt Smarty nichtsmehr aus |
|
|
Ich hab mein entwicklungsrechner gerade auf PHP5 umgestellt
von php 4.3/apache 1
auf php 5.0.3 / apache 2
seitdem schmeisst Smarty mir garnichts mehr aus, nichtmal das unten gelistete script läuft.
Ich hab nichtmal mehr nie idee wonach ich suchen muss.
Gibt es da irgendwelche kniffe vielleicht bezüglich der initialisierung oder so?
MfG Johny
test.php
Code: |
<?
require_once("***/smarty/Smarty.class.php");
$smarty=new Smarty;
$smarty->template_dir="templates/";
$smarty->compile_dir="templates_c/";
$smarty->assign("test","testen wir es");
$smarty->display("test.tpl");
?> |
test.tpl
[/code] |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Wed Feb 23, 2005 8:41 am Post subject: |
|
|
läuft <?php phpinfo(); ?> ?
hast du error_reporting auf E_ALL und display_errors an?
hasr du den templates_c-order geleert, nachdem du die php-version gewechselt hast? |
|
Back to top |
|
JohnyHC Smarty n00b
Joined: 22 Feb 2005 Posts: 2
|
Posted: Wed Feb 23, 2005 1:35 pm Post subject: |
|
|
phpinfo läuft,
phpordner ist geleert.
Errors werden standardmässig bei PHP5 nicht anezeigt oder? ich mach es nachher mal an und teste. |
|
Back to top |
|
deezaster Smarty n00b
Joined: 17 Feb 2005 Posts: 3
|
Posted: Wed Feb 23, 2005 11:01 pm Post subject: wer weiss, vergleich mal die php.ini |
|
|
hast du mein posting schon studiert:
"Probleme mit PHP5 und {literal}: Die Lösung!" vom 17.2.2005
Tip: verlgeiche die php.ini - am einfachsten via phpinfo() - der beiden php
versionen 4 und 5 (denn wenn es unter php4 lief, dann muss es auch unter php5 lauffen, das behauptet smarty!) |
|
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
|