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

Search found 15 matches
Smarty Forum Index
Author Message
  Topic: Calling the {include} function from a function-plugin?
Alphanimal

Replies: 1
Views: 2897

PostForum: General   Posted: Wed Jul 26, 2006 9:25 pm   Subject: Calling the {include} function from a function-plugin?
Hi!
I want to make a built-in template editor for my page.
so every template that is displayed should get a header with a "edit" link when in edit-mode.
i have a main template that has the HTML-hea ...
  Topic: Listing all used config-file entrys
Alphanimal

Replies: 0
Views: 1535

PostForum: General   Posted: Tue Jul 12, 2005 10:30 pm   Subject: Listing all used config-file entrys
hello!
I am using config files for a multi-language page.
its very tiring to replace every language-dependet phrase ba a {#something#} tag, then switch to each config-file and add the entry.

I th ...
  Topic: Adding GET-values to a link?
Alphanimal

Replies: 0
Views: 1423

PostForum: General   Posted: Wed May 11, 2005 7:03 pm   Subject: Adding GET-values to a link?
Hi!
What would be a easy way to add a aditional get-variable to a url?

Its for the language selection.
The language Menu is in every page.
if the user klick the link to another language he sould ...
  Topic: Config files for multi-language support?
Alphanimal

Replies: 1
Views: 2143

PostForum: General   Posted: Wed May 11, 2005 3:12 pm   Subject: Config files for multi-language support?
Hi!
I'm planing to create a multi-language support system.
All Pages are displayes using smarty.
Would you recommend to use Config Files to save the different translations of all the texts / words ...
  Topic: Dynamic Variables?
Alphanimal

Replies: 1
Views: 1989

PostForum: General   Posted: Mon May 24, 2004 7:40 pm   Subject: Dynamic Variables?
Hi!
i'm trying to fix a formprocessor, and want to make a HTML-Select Form element for Dates.
I Have 3 SELECT Tags, they are named eg. "birth_day","birth_mon","birth_year"

but the base-name ("bi ...
  Topic: Simple loop???
Alphanimal

Replies: 2
Views: 2396

PostForum: General   Posted: Mon May 24, 2004 7:23 pm   Subject: Thanks!
Smile worked!

but now i have an other problem... see other post!
  Topic: Simple loop???
Alphanimal

Replies: 2
Views: 2396

PostForum: General   Posted: Sun May 23, 2004 7:00 pm   Subject: Simple loop???
Hi!

Is it possible to do a simple loop from 1 to 10?

section/foreach?

thx
  Topic: Parameters and strings including array-vars...
Alphanimal

Replies: 2
Views: 2339

PostForum: General   Posted: Tue May 04, 2004 12:39 pm   Subject: Thanks!
That worked...
  Topic: Parameters and strings including array-vars...
Alphanimal

Replies: 2
Views: 2339

PostForum: General   Posted: Mon May 03, 2004 8:49 pm   Subject: Parameters and strings including array-vars...
Hi!
I tried to put the value of a array-element to a smarty parameter (of {include})
i tested:
{include file="test.tpl" var="test_$array.elem"}
... var="test_$ar ...
  Topic: Transform filename and Array into GET-String?
Alphanimal

Replies: 0
Views: 1819

PostForum: General   Posted: Sun May 02, 2004 8:27 pm   Subject: Transform filename and Array into GET-String?
Hi!
I have got a filename $file and an array of values i want to pass by GET-method to $file

so if $file is "test.php" and the array is:
array("name"=>"Alf","test"=>"ABCDEFG")

the output ...
  Topic: Convert GET- and POST-strings for output in textfield?
Alphanimal

Replies: 2
Views: 2644

PostForum: General   Posted: Mon Apr 26, 2004 4:35 pm   Subject: Convert GET- and POST-strings for output in textfield?
Hi again!
I now have found escape:"html" Smile
but this is not waht i was looking for.
escape doesn't remove those backslashes...
  Topic: Convert GET- and POST-strings for output in textfield?
Alphanimal

Replies: 2
Views: 2644

PostForum: General   Posted: Mon Apr 26, 2004 4:21 pm   Subject: Convert GET- and POST-strings for output in textfield?
Hi!
I have a string assigned directly from a form
like this:
$smarty->assign("email",$_POST['email']);
and i want to display this value in a textfield. done like this: ...
  Topic: local & global variables?
Alphanimal

Replies: 5
Views: 4127

PostForum: General   Posted: Sun Apr 25, 2004 4:10 pm   Subject: assign_by_ref worked, but...
It worked with assign_by_ref! thanks!
but:
I have to do it in the php source code, so i wanted to assign a array of such global variables, so that i do not allways have to assign a new var, when i n ...
  Topic: local & global variables?
Alphanimal

Replies: 5
Views: 4127

PostForum: General   Posted: Sun Apr 25, 2004 12:46 pm   Subject: I just want to show it once!
I just want this include to be displayed only once!
This is for an error-output. the default tpl shows all occured errors on the bottom of each page, but if the errors are shown in the page, the mess ...
  Topic: local & global variables?
Alphanimal

Replies: 5
Views: 4127

PostForum: General   Posted: Sat Apr 24, 2004 5:27 pm   Subject: local & global variables?
Hi!
If I include a template with another tamplate with {include file=...}
and i assign a variable in the included template, is it available in temps included after this one?

i tried the following ...
 
Page 1 of 1
All times are GMT
Jump to:  


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