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

Parse error et pourtant ?

 
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: French
View previous topic :: View next topic  
Author Message
topolofi
Smarty Rookie


Joined: 16 Jun 2006
Posts: 27

PostPosted: Fri Jun 16, 2006 12:19 pm    Post subject: Parse error et pourtant ? Reply with quote

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


Joined: 17 Aug 2005
Posts: 23

PostPosted: Tue Jun 20, 2006 9:00 am    Post subject: Reply with quote

$smarty = new Smarty ;

Last edited by reb on Wed May 05, 2010 10:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
topolofi
Smarty Rookie


Joined: 16 Jun 2006
Posts: 27

PostPosted: Wed Jun 21, 2006 12:29 pm    Post subject: Merci Reply with quote

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
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: French 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