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 10 matches
Smarty Forum Index
Author Message
  Topic: Problem with a foreach loop (showing duplicates)
MindPhlash

Replies: 1
Views: 4631

PostForum: General   Posted: Sun Jun 22, 2008 2:04 pm   Subject: Problem with a foreach loop (showing duplicates)
I have a foreach loop in my template, and it's displaying the correct information EXCEPT for it's showing each record 3 times

here's the code I'm using to construct the loop
{section name=r ...
  Topic: HELP-Creating a dynamic array with keys other then numbers
MindPhlash

Replies: 1
Views: 4860

PostForum: General   Posted: Tue Jun 17, 2008 8:23 pm   Subject: HELP-Creating a dynamic array with keys other then numbers
Hello,

I'm having a little trouble having my smarty template which is generating

Here is the main code of the tpl file which is doing the work:


{foreach from=$candidates key=myId ite ...
  Topic: dynamic dropdowns / html select
MindPhlash

Replies: 1
Views: 4634

PostForum: General   Posted: Wed May 28, 2008 12:53 pm   Subject: dynamic dropdowns / html select
Hi,

I'm trying to get a dynamic set of options to populate my {html select} dropdown box and I just can't find any examples to look at...


I have the array which I want to populate the dropdow ...
  Topic: trying to learn to use Smarty.
MindPhlash

Replies: 8
Views: 63968

PostForum: Article Discussions   Posted: Fri May 16, 2008 1:33 pm   Subject: trying to learn to use Smarty.
I just tried the {if} statement that you gave me for the smarty sessions, but nothing showed up

here's where I declared my session variables upon login:


session_register("myusername& ...
  Topic: trying to learn to use Smarty.
MindPhlash

Replies: 8
Views: 63968

PostForum: Article Discussions   Posted: Fri May 16, 2008 12:28 pm   Subject: trying to learn to use Smarty.
On of the tags I've been finding lacking on documentation is the $smarty.session reserved variable

I'm using sessions in my current site, however I've tried a few times to use the reserve $smarty ...
  Topic: trying to learn to use Smarty.
MindPhlash

Replies: 8
Views: 63968

PostForum: Article Discussions   Posted: Thu May 15, 2008 5:51 pm   Subject: trying to learn to use Smarty.
I bought the one book that I could find on it - Smarty - PHP Template programming and Applications, but it's still not the world's greatest reference.

I find myself doing a lot of {php} {/php} as ...
  Topic: simple question about {foreach} and nested arrays in smarty
MindPhlash

Replies: 1
Views: 4198

PostForum: General   Posted: Thu May 15, 2008 5:46 pm   Subject: simple question about {foreach} and nested arrays in smarty
I have a sql statement that is pulling a little over 350 results and I'd like to cycle through a list using the foreach statement with the nested array I've built. However I'm having a little trouble ...
  Topic: Smarty on every project...
MindPhlash

Replies: 7
Views: 96379

PostForum: Testimonials   Posted: Thu May 15, 2008 5:45 pm   Subject: Smarty on every project...
good job
  Topic: Help adding smarty variables to {php} blocks
MindPhlash

Replies: 3
Views: 6534

PostForum: General   Posted: Wed May 14, 2008 7:20 pm   Subject: Help adding smarty variables to {php} blocks
Actually I found a way around it by registering the variable in the php which is generating the array beforehand and then just making that a seperate variable and not having smarty assigning that..
...
  Topic: Help adding smarty variables to {php} blocks
MindPhlash

Replies: 3
Views: 6534

PostForum: General   Posted: Wed May 14, 2008 6:29 pm   Subject: Help adding smarty variables to {php} blocks
Hi,

I'm trying to pull some of my pre-definded variables (ie {$candidate.applicationID} ) into my {php} block that's on the bottom of the page that I'm using to write to a log file

however I ...
 
Page 1 of 1
All times are GMT
Jump to:  


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