[Cartoweb-users] writing new plugin

giuseppe.derossi at email.it giuseppe.derossi at email.it
Sun Mar 5 11:45:48 EST 2006


Hi guys,
I\'ve to pass a bidimensional numeric array to the template in a foreach
cycle. In this way I want to list the possible couple of coordinates to
recenter the map, I\'m able to pass a monodimensional array, but It\'s not
enogh. Could you please   suggest me anything ?

My code :

in php i\'ve $coordinates[][] 

and in drawUserForm I set:

$smarty->assign(\'coordinates\',this->coordinates);

in the template, I\'ve to modify the following piece of code which works for
a simple array:

{foreach from=$coordinates item=xp1}
  x: {$xp1} <br>
{/foreach}

Thanks in advantage and best regards 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Problemi di Liquidità? Con Logos Finanziaria 30.000 € in 24 ore a
dipendenti e lavoratori autonomi con rimborsi fino a 120 mesi clicca qui

 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2907&d=20060305

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20060305/3ff2b612/attachment.html


More information about the Cartoweb-users mailing list