Hi,
I am new to use PHPTal and so far, I like it. It's great to separate php
code and the xhtml code.
One of my list need some data from two arrays. I have one array array1 that
I use tal:repeat=offers jobOffers and find the content like this:
tal:content=offers/name for example. One of
I think I understand what you are saying. The easiest way to do this would be
if 'idoffer' is the key for the second array (so you have an array of key/value
pairs with the idoffer as the key and name as the value). Then you can
effectively ask 'give me the value for this key I am giving you
for the answer so far ;)
Teis
-Opprinnelig melding-
Fra: phptal-boun...@lists.motion-twin.com
[mailto:phptal-boun...@lists.motion-twin.com] På vegne av Robert Goldsmith
Sendt: 28. juni 2011 17:06
Til: Template Attribute Language for PHP
Emne: Re: [PHPTAL] Table with two array problem
I think I
...@lists.motion-twin.com
[mailto:phptal-boun...@lists.motion-twin.com] På vegne av Robert Goldsmith
Sendt: 28. juni 2011 17:06
Til: Template Attribute Language for PHP
Emne: Re: [PHPTAL] Table with two array problem
I think I understand what you are saying. The easiest way to do this would
...@lists.motion-twin.com] På vegne av Robert Goldsmith
Sendt: 28. juni 2011 17:06
Til: Template Attribute Language for PHP
Emne: Re: [PHPTAL] Table with two array problem
I think I understand what you are saying. The easiest way to do this would
be if 'idoffer' is the key for the second array (so you
for PHP
Emne: Re: SV: [PHPTAL] Table with two array problem
Ok maby I didn't understand you correctly. Case where there could be more than
one name for idoffer:
$tmpArray = array();
foreach($otherArray as $a){
$tmpArray[$a['idoffer']][] = $a['name']; } $otherArray = $tmpArray();
unset