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

How should my logic with Javascript be ?

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


Joined: 19 Jun 2004
Posts: 1

PostPosted: Sat Jun 19, 2004 6:51 pm    Post subject: How should my logic with Javascript be ? Reply with quote

I have just started using smarty and i am amazed... this is by far the best class i have used in my work together with GFX-people...

But i have a problem with my logic. I have a main tamplate, that holds the mainlayout. In this main-template i include sub--template files, if it is needed those sub-templates have a PHP file named sub_template.php

Now i need to get some javascript linked to some of the sub-templates, but the javascript should be in the header and i have no clue how i could do this without making a new file for each sub-template (i hope to awoid that).

I hope that there is a way, to have one file with javascript, that are made in some kind of blocks(named after the sub-template page), and then i could include them that way.

Thx for your time
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