Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Plugin error?

 
Post new topic   Reply to topic    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
LifeGuarD
Smarty n00b


Joined: 02 Aug 2003
Posts: 3

PostPosted: Sat Aug 02, 2003 4:59 pm    Post subject: Plugin error? Reply with quote

Hi!
i'm trying to install smarty on my server, running php5...
but i get this error:

Fatal error: Smarty error: [in novaleg.tpl line 6]: [plugin] unknown tag - 'Teste' (Smarty.class.php, line 2543) in /var/www/libs/Smarty.class.php on line 2652

this is a simple page....
index.php
<?php
require 'Smarty.class.php';
$smarty = new Smarty;
$smarty->compile_check = true;
$smarty->debugging = true;
$smarty->assign("Teste","jonis");
$smarty->display('novaleg.tpl');
?>

novaleg.tpl:

This is a test: {Teste)

doesn't work Sad

whats wrong? Sad((

PS: libs/ folder is in my include_path
Back to top
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Sat Aug 02, 2003 6:51 pm    Post subject: Reply with quote

{$Teste} not {Teste}. the former is a variable (that you assinged in your php-code) the latter is a call to a plugin-function (that is unknown to your smarty).

HTH
messju
Back to top
View user's profile Send private message Send e-mail Visit poster's website
LifeGuarD
Smarty n00b


Joined: 02 Aug 2003
Posts: 3

PostPosted: Sun Aug 03, 2003 3:20 am    Post subject: Reply with quote

ooooopsss....
my mistake!
sorry Sad
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Installation and Setup 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