|
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 |
hanshenp Smarty n00b
Joined: 19 Jun 2004 Posts: 1
|
Posted: Sat Jun 19, 2004 6:51 pm Post subject: How should my logic with Javascript be ? |
|
|
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 |
|
|
|
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
|