|
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 |
topolofi Smarty Rookie
Joined: 16 Jun 2006 Posts: 27
|
Posted: Fri Jun 16, 2006 12:19 pm Post subject: Parse error et pourtant ? |
|
|
Bonjour, je débute totalement avec smarty.
J'ai le programme suivant :
<?php
define('SMARTY_DIR','smarty/');
require(SMARTY_DIR.'Smarty.class.php');
$smarty = new Smarty
$smarty->template_dir = '/templates/';
$smarty->compile_dir = '/templates_c/';
$smarty->config_dir = '/configs/';
$smarty->cache_dir = '/cache/';
$smarty->assign('title','Ma Première page sous Smarty');
$smarty->assign('prenom','Elgi');
$smarty->display('index.tpl');
?>
Et il me fait une erreur à la ligne 7 :
$smarty->template_dir = '/templates/';
Parse error: parse error in c:\program files\easyphp1-8\www\testsmarty\index.php on line 7
Comme c'est étrange, mais peut-être n'ai-je pas vu ce qui vous semblera évident.
Merci d'avance |
|
Back to top |
|
reb Smarty Rookie
Joined: 17 Aug 2005 Posts: 23
|
Posted: Tue Jun 20, 2006 9:00 am Post subject: |
|
|
$smarty = new Smarty ;
Last edited by reb on Wed May 05, 2010 10:34 pm; edited 1 time in total |
|
Back to top |
|
topolofi Smarty Rookie
Joined: 16 Jun 2006 Posts: 27
|
Posted: Wed Jun 21, 2006 12:29 pm Post subject: Merci |
|
|
Merci beaucoup, j'ai avancé depuis, je suis à la recherche de template de la même manière qu'il existe des scripts javas ou autre;
Merci encore |
|
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
|