Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Search found 4 matches
Smarty Forum Index
Author Message
  Topic: {include ...} and inline Javascript
krodelabestiole

Replies: 4
Views: 4953

PostForum: General   Posted: Sat Jul 13, 2013 10:13 pm   Subject: {include ...} and inline Javascript
here is a method to keep spaces and line breaks, just adding \ before each one, which works with javascript :

{capture name="html"}
{include file='template.tpl'}
&# ...
  Topic: config file to javascript (json ?)
krodelabestiole

Replies: 1
Views: 3763

PostForum: General   Posted: Sun Nov 27, 2011 6:54 pm   Subject: config file to javascript (json ?)
i was trying to figure out how to pass variables i get in an INI file to javascript (i'm interested in passing a language file here)

i thought of many way to do this but none worked yet (javascript ...
  Topic: [modifier] ucnames to capitalize titles and places and stuff
krodelabestiole

Replies: 1
Views: 4886

PostForum: Plugins   Posted: Tue Jul 05, 2011 9:40 pm   Subject: [modifier] ucnames to capitalize titles and places and stuff
btw what would be the better way to switch language ?

is there any smarty function to get the language or a php one such as getLocale ?
  Topic: [modifier] ucnames to capitalize titles and places and stuff
krodelabestiole

Replies: 1
Views: 4886

PostForum: Plugins   Posted: Tue Jul 05, 2011 9:31 pm   Subject: [modifier] ucnames to capitalize titles and places and stuff
a bit like ucwords :
it's made to capitalise each word of a string except small words like prepositions or articles

ive been looking for such fonction on the web but as i found nothing that suited ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP