Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

sobre {section...} y {foreach...}

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Spanish
View previous topic :: View next topic  
Author Message
sir_gon
Smarty n00b


Joined: 11 Feb 2007
Posts: 1

PostPosted: Sun Feb 11, 2007 4:59 am    Post subject: sobre {section...} y {foreach...} Reply with quote

ninguna de estas 2 imlementaciones de bucles soporta como entrada un array de claves asociativas ¿alguna razón o simplemente no se ha implementado?

ya que e intentado imprimir un array y sus claves:

Code:
$cosa = array (
 'clave1' = 'valor1',
 'clave2' = 'valor2'
);


el punto es que usando .index no puedo obtenr clave1 ni clave2, y tampoco hace efecto dentro de los valores de array.

pero si el array es:

Code:
$cosa = array ( 'valor1', 'valor2' );


puedo ver perfectamete valor1 y valor2 tal como el manual de {foreach ...} y {section ...}

osea, esta pensado solo para funcionar con arrays cuya primera dimension tenga solo claves autonumericas?
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Spanish All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


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