How to add stylesheets and javascript in smarty

how to add styles and javascript, to smarty application, in the head section  written the styles code but when we are applying that code to the tpl file is not applied is there any separate code to written in the smarty.

for that reason go to below code

we can the simple code in the smarty application for style sheet and javascript , we add the add one keyword in the tpl files, then

<style type=”text/css”>
font-family:Arial, Helvetica, sans-serif;

It will be useful.

Anil Kumar Panigrahi

With more than 10 years experience in PHP and Founder of Anil Labs, a blog for PHP and related posts. contributed posts regarding CodeIgniter, CakePHP and Learn PHP online ... Contact : [email protected]

You may also like...

3 Responses

  1. in the above example
    is syntax or any abstract content in html…………?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.