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

Should I use Smarty?

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
ogar
Smarty n00b


Joined: 01 Jun 2004
Posts: 3

PostPosted: Tue Jun 01, 2004 7:41 pm    Post subject: Should I use Smarty? Reply with quote

We use Netobjects Fusion ver 7 to develope our websites, then modify them with php to integrate with our DB. I just installed Smarty and I created and tried the basic Smarty demo files and they work fine.
I tried using Smarty on my first page (index.html) and immediatly received the following error:

Fatal error: Smarty error: [in index.html line 9]: syntax error: unrecognized tag: (Smarty_Compiler.class.php, line 403) in c:\apache\htdocs\smarty\Smarty.class.php on line 1102

Line 9 in index.html is:
<SCRIPT>
<!-- line 8
function F_loadRollover(){} function F_roll(){} line 9
//--> line 10
</SCRIPT>

Can anyone help with this?
Back to top
View user's profile Send private message
messju
Administrator


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

PostPosted: Tue Jun 01, 2004 9:19 pm    Post subject: Reply with quote

{ and } are parsed by smarty. use {literal}
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7364
Location: Lincoln Nebraska, USA

PostPosted: Tue Jun 01, 2004 9:19 pm    Post subject: Reply with quote

http://smarty.incutio.com/?page=SmartyFrequentlyAskedQuestions#template-3
Back to top
View user's profile Send private message Visit poster's website
ogar
Smarty n00b


Joined: 01 Jun 2004
Posts: 3

PostPosted: Wed Jun 02, 2004 3:40 pm    Post subject: Thank you Reply with quote

In my eagerness to learn I didn't read the manual properly. I found the answer to the problem just before you sent me the reply. It worked!

I can see how using a template could make my life easier. Now, all I have to do is learn the rest of smarty.

Thank You.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty Development 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