Monday, October 5, 2009

stylesheets and javascript code working on 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


{literal}


<style type=”text/css”>

.style1

{

font-family:Arial, Helvetica, sans-serif;

color:#666666;

}

</style>

{/literal}



It will be useful.

1 comment:

  1. This will be useful when we develop smarty application

    Thank you . . .

    ReplyDelete