News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Jacques Marneweck's Blog:
Smarty tip for including multiple javascript files
December 26, 2006 @ 15:44:10

Jacques Marneweck has a tip for Smarty users out there looking for a simpler way to include multiple Javascript files into their templates.

Previously one would have a good chunk of lines to include different javascript files based on what your form was requiring for effects, in the template file where you include the header.tpl file you would specify which set of javascript files to also include.

His solution combines the normal Smarty calls for the different Javascript files into a single, simple insert calls for as many Javascript files you'd like to include.

0 comments voice your opinion now!
smarty javascript include multiple tip smarty javascript include multiple tip


blog comments powered by Disqus

Similar Posts

Geeks Not Nerds Blog: Rolling your own Blog Backend from Scratch Part 1

Felix Geisendorfer's Blog: A PHP developers guide to JavaScript - Part 1

Debuggable Blog: Make your life easier with these five CakePHP Quicktips

Zend Developer Zone: Integrating Smarty and eZ Components with the Zend Framework

WebDevLogs: ClickHeat - PHP+JS heatmap


Community Events











Don't see your event here?
Let us know!


application symfony2 composer hack framework install code database unittest performance facebook podcast component security threedevsandamaybe release language package hhvm introduction

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework