Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 24 matches
Smarty Forum Index
Author Message
  Topic: How to work with the Smarty Template Engine for beginners
0rientsieg

Replies: 0
Views: 11555

PostForum: Smarty Development   Posted: Fri Feb 14, 2014 5:03 pm   Subject: How to work with the Smarty Template Engine for beginners
1. General
Some months ago I got knowledge about the Smarty Template Engine and I started to think about how to embed Smarty useful into my Internet pages. I programmed previously some Internet pag ...
  Topic: include file will not be replaced at a next call
0rientsieg

Replies: 5
Views: 13000

PostForum: Smarty Development   Posted: Sat Jan 18, 2014 2:59 pm   Subject: Insertion of text into javascript files at compilation time
Dear U. Tews,
Thank you very much for your previous hint that in front of the include routine the {/literal} tag is missing. You were fully right, that was the problem. I arranged now all {literal}{/ ...
  Topic: Text Insertion in script Files
0rientsieg

Replies: 15
Views: 30769

PostForum: Smarty Development   Posted: Sat Jan 18, 2014 1:04 am   Subject: Include javascript template into Smarty template
Dear mohrt,
Thank you for your additional support.
I found in the Smarty manual the following hint for including a .tpl file into another .tpl file:
{* windows absolute filepath (MUST use "fil ...
  Topic: Text Insertion in script Files
0rientsieg

Replies: 15
Views: 30769

PostForum: Smarty Development   Posted: Fri Jan 17, 2014 4:40 pm   Subject: Smarty and embedded javascript
Dear mohrt,
I get both solutions not working.
The first solution I tried more than an hour in different ways. No success.
For the second solution I put a Colorinter.tpl with the appropriate Smarty ...
  Topic: Text Insertion in script Files
0rientsieg

Replies: 15
Views: 30769

PostForum: Smarty Development   Posted: Fri Jan 17, 2014 7:47 am   Subject: Smarty insertion in embedded javascript
Dear mohrt,
Many thanks for your support.
What do you think? is it in such a case not easier to paste the javascript code completely into the .tpl file and put the appropriate Smarty tags in?
I d ...
  Topic: Text Insertion in script Files
0rientsieg

Replies: 15
Views: 30769

PostForum: Smarty Development   Posted: Fri Jan 17, 2014 7:46 am   Subject: Smarty insertion in embedded javascript
Dear mohrt,
Many thanks for your support.
What do you think? is it in such a case not easier to paste the javascript code completely into the .tpl file and put the appropriate Smarty tags in?
I d ...
  Topic: Text Insertion in script Files
0rientsieg

Replies: 15
Views: 30769

PostForum: Smarty Development   Posted: Fri Jan 17, 2014 12:48 am   Subject: Insertion of text in javascript files
Dear mohrt,
I tried the term as you suggested:
<script type="text/javascript" src="foo.php?page=Colorinter.js"></script>
and also:
<script type="text/javasc ...
  Topic: Text Insertion in script Files
0rientsieg

Replies: 15
Views: 30769

PostForum: Smarty Development   Posted: Thu Jan 16, 2014 6:21 am   Subject: Text Insertion in script Files
Hello douglassdavis,
At the runtime of the .tpl file the browser obviously has loaded the javascript file in which I want to insert language-dependent text. The image is displayed after clicking on t ...
  Topic: Text Insertion in script Files
0rientsieg

Replies: 15
Views: 30769

PostForum: Smarty Development   Posted: Thu Jan 16, 2014 2:40 am   Subject: Text insertion in javascript
Dear douglassdavis,
Thank you for your reply.
The situation is as follows:
I had in former times created 3 .html files, one for English, one for Thai and one for German language. These files still ...
  Topic: Text Insertion in script Files
0rientsieg

Replies: 15
Views: 30769

PostForum: Smarty Development   Posted: Wed Jan 15, 2014 3:04 pm   Subject: Text Insertion in script Files
Dear All,
If I insert at runtime a javascript file like follows:

<script type="text/javascript" src="../js/Colorinter.js"></script>

Will it be possible to insert ...
  Topic: Are there benefits using Smarty against using PHP directly?
0rientsieg

Replies: 9
Views: 22490

PostForum: Smarty Development   Posted: Wed Jan 15, 2014 12:48 am   Subject: Smarty versa PHP
Dear mohrt,
Thank you for your reply.
Yes, the files in the directories template_c and cache are not identical, as I saw right now. The files at templates_c contain PHP references at the spots where ...
  Topic: Are there benefits using Smarty against using PHP directly?
0rientsieg

Replies: 9
Views: 22490

PostForum: Smarty Development   Posted: Tue Jan 14, 2014 3:50 pm   Subject: Smarty versa PHP
Dear mohrt,
I'm not at all against Smarty. I converted just my 6th template from direct PHP to Smarty.
But I'm a German Telecommunications Enbgineer, responsible for the design and ordering of the t ...
  Topic: Are there benefits using Smarty against using PHP directly?
0rientsieg

Replies: 9
Views: 22490

PostForum: Smarty Development   Posted: Tue Jan 14, 2014 3:24 am   Subject: Smarty versa directly used PHP
Dear U. Tews,
Thank you for your reply.
I checked Smarty caching with the following result:
If the caching lifetime is set to a substantial time, the compiled Smarty .tpl file stays for this time i ...
  Topic: Are there benefits using Smarty against using PHP directly?
0rientsieg

Replies: 9
Views: 22490

PostForum: Smarty Development   Posted: Mon Jan 13, 2014 5:20 pm   Subject: Are there benefits using Smarty against using PHP directly?
Dear All,
I'm new to Smarty. I use Smarty at present to insert in different template files text, at each call either English, or Thai, or German. I prepared at present 5 Smarty templates, that work p ...
  Topic: include file will not be replaced at a next call
0rientsieg

Replies: 5
Views: 13000

PostForum: Smarty Development   Posted: Mon Jan 13, 2014 11:55 am   Subject: include file will not be replaced at a next call
Thank you for your advice, U. Tews.
I inserted the line and it works now without force_compile.
Beginners need badly the support of experienced persons.
Thanks again
With regards
Siegfried
Perma ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
Jump to:  


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