How to include javascript file
Posted: Sat Oct 14, 2006 7:54 am
Hi,
I am to include javascript file in the template......now i know that I am to write it like this
{literal}
{/literal}
Now when I am doing this inside the head tag it's ok.
But placing inside the body of the template it is producing smarty error...
string(118) "Smarty error: [in template:22 line 91]: syntax error: unrecognized tag 'literal' (Smarty_Compiler.class.php, line 583)" string(118) "Smarty error: [in template:22 line 93]: syntax error: unrecognized tag 'literal' (Smarty_Compiler.class.php, line 583)"
How can I do that? Is there a way to include js file inside the body of the template or always I have to make it included in head tag?
Please help
I am to include javascript file in the template......now i know that I am to write it like this
{literal}
{/literal}
Now when I am doing this inside the head tag it's ok.
But placing inside the body of the template it is producing smarty error...
string(118) "Smarty error: [in template:22 line 91]: syntax error: unrecognized tag 'literal' (Smarty_Compiler.class.php, line 583)" string(118) "Smarty error: [in template:22 line 93]: syntax error: unrecognized tag 'literal' (Smarty_Compiler.class.php, line 583)"
How can I do that? Is there a way to include js file inside the body of the template or always I have to make it included in head tag?
Please help