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 19 matches
Smarty Forum Index
Author Message
  Topic: SmartyValidate: Multiple forms on same page
mischa

Replies: 0
Views: 7148

PostForum: Add-ons   Posted: Wed Aug 31, 2005 8:08 am   Subject: SmartyValidate: Multiple forms on same page
Hi all

I've tried to create a page with multiple forms. After submitting one of the forms, the same page should be displayed with the results below the form (always the same smarty-template). Is th ...
  Topic: Name of parent Template
mischa

Replies: 1
Views: 4382

PostForum: General   Posted: Fri Nov 07, 2003 12:40 pm   Subject: Name of parent Template
Hi

Is it possible to get the name of the prant template. As example, i've a _header.tpl which is loaded in every template. In _header.tpl i need to know which template has loaded the header.
I nee ...
  Topic: Variable in a variable or nested variables
mischa

Replies: 7
Views: 15388

PostForum: General   Posted: Thu Jun 26, 2003 12:52 pm   Subject: Variable in a variable or nested variables
Hi

try this:

{popup caption="Details" text=$myvar snapx=10 snapy=10}


PS: have a look at domTT
http://www.mojavelinux.com/forum/viewtopic.php?t=127
i've done a smarty-f ...
  Topic: html_options error
mischa

Replies: 1
Views: 5088

PostForum: General   Posted: Thu Jun 26, 2003 12:46 pm   Subject: html_options error
Hi

You should copy the file

shared.escape_special_chars.php

to your plugins-dir.
  Topic: Newbie Question : how to test variable....
mischa

Replies: 3
Views: 6080

PostForum: General   Posted: Mon Jun 23, 2003 4:34 pm   Subject: Newbie Question : how to test variable....
you can use simple php-functions in smarty:


{if isset($var)}
<h1>This var is SET!</h1>
{else}
<h2>is NOT set...</h2>
{/if}


b ...
  Topic: Accessing an array of objects
mischa

Replies: 7
Views: 12538

PostForum: General   Posted: Mon Jun 23, 2003 4:30 pm   Subject: Accessing an array of objects
Hi

You've access to objects within Smarty:


$smarty->assign('films',$films); // $films ->array of objects


Template:

{foreach from=$films item=film}
{$film-> ...
  Topic: objects in smarty
mischa

Replies: 9
Views: 18494

PostForum: Bugs   Posted: Tue Jun 17, 2003 8:33 am   Subject: objects in smarty
no problem!

i guess it's the weather... too hot for programming! Wink
  Topic: objects in smarty
mischa

Replies: 9
Views: 18494

PostForum: Bugs   Posted: Tue Jun 17, 2003 8:00 am   Subject: objects in smarty
concat doesn't work, but with


{assign var=test value="test"|cat:$addr->addr_id}


it works! Wink

thanks, my code will be a little bit shortet. i hope the new ...
  Topic: calling accessor functions to PHP objects from Smarty?
mischa

Replies: 3
Views: 7682

PostForum: General   Posted: Mon Jun 16, 2003 11:13 pm   Subject: calling accessor functions to PHP objects from Smarty?
Hi Alan

Yes, this is possible. I'm using Smarty-2.5.0 and {$object->setName($name)} or {$obj->getName()} works well!
  Topic: objects in smarty
mischa

Replies: 9
Views: 18494

PostForum: Bugs   Posted: Mon Jun 16, 2003 9:30 pm   Subject: objects in smarty
ok. that's no problem for me.

and thanks for helping!
  Topic: http://www.lan-e.ch - Association for LAN-Partys
mischa

Replies: 0
Views: 8251

PostForum: Showcase   Posted: Mon Jun 16, 2003 8:37 pm   Subject: http://www.lan-e.ch - Association for LAN-Partys
This is our Site, almost driven by Smarty-2.5.0.

http://www.lan-e.ch

The phpBB is not Smarty-Driven. I've tried it, but it's nearly impossible to use phpBB with my header and footer-smarty-templ ...
  Topic: objects in smarty
mischa

Replies: 9
Views: 18494

PostForum: Bugs   Posted: Mon Jun 16, 2003 8:07 pm   Subject: objects in smarty
i've tried the following code:

{assign var=test value="test: `$addr->addr_id`"}
{$test}

output:

test: `Object->addr_id`


is my code wrong ...
  Topic: objects in smarty
mischa

Replies: 9
Views: 18494

PostForum: Bugs   Posted: Mon Jun 16, 2003 3:41 pm   Subject: objects in smarty
Hi

I've the following problem if i use the following code:


{assign var=test value="Example: $obj->name"}
{$test}

output:
Example: Object->n ...
  Topic: Need help for a special post- or prefilter
mischa

Replies: 8
Views: 11045

PostForum: General   Posted: Fri Jun 06, 2003 11:44 pm   Subject: Need help for a special post- or prefilter
but i've the following error:

Fatal error: Smarty error: [in detailorder.tpl line 74]: [plugin] modifier 'nodefaults' is not implemented (Smarty.class.php, line 2543 ...
  Topic: Need help for a special post- or prefilter
mischa

Replies: 8
Views: 11045

PostForum: General   Posted: Fri Jun 06, 2003 5:14 pm   Subject: Need help for a special post- or prefilter
http://smarty.php.net/manual/en/variable.default.modifiers.php Smile

I've tried it and it works. but the |nodefaults-modifier doesn't work. smarty says, that it isn't implemented and i can't find a m ...
 
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