Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

RE: [SMARTY] RE: Assigning to variables
Sorry, I though you wanted to capture each iteration individually.
But your catCap example looks like it does what you want, no? Alternately,
if you just want to capture everything at once, you can move the capture
outside the section.
After the capture you are free to concatenate $catCap or $smarty.capture.cap
onto whatever else you want
(http://smarty.php.net/manual/en/lan...odifier.cat.php).

p.

> ----------
> From: 	Jake Stride
> Sent: 	Thursday, August 19, 2004 3:10 AM
> To: 	Lambert, Patrick; smarty-general@lists.php.net; 'Jake Stride'
> Subject: 	Re: [SMARTY] RE: Assigning to variables
>
> Thanks this should work, but how would I go about concatinating the output
> to another value? Ie I want to build up a string:
>
> $var = $var1.$var2;
>
> {section name=dataloop loop=$data}
> {capture name="cap"}
>
> {$data[dataloop].FOO}
>
> {/capture}
> {$catCap|cat:$smarty.capture.cap}
> {/section}
>
> {$catCap}
>
> On 18/8/04 10:44 pm, "Lambert, Patrick" <Patrick.Lambert@noggin.com>
> wrote:
> 
> http://smarty.php.net/manual/en/lan...php#LANGUAGE.FU
> NC 
> seem 
> problem 
> them 
> href="{$serverRoot}/?{$sessionName}={$sessionValue}&module={$view_data
 
> iew].newmodule}&function={$view_data[view].newfunction}&sub={$view 
> ata[view].newsub}&type={$view_data[view].newtype}&view={$view_data 
> href="{$serverRoot}/?{$sessionName}={$sessionValue}&module={$view_data
 
> iew].newmodule}&function={$view_data[view].newfunction}&sub={$view 
> ata[view].newsub}&type={$view_data[view].newtype}&view={$view_data 
> need 
>
>


Report this thread to moderator Post Follow-up to this message
Old Post
Patrick Lambert
08-19-04 09:07 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Smarty Templates archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:43 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.