Share » Forums » Developer » how to build a table

how to build a table

how to build a table

Wednesday 22 October 2008 4:47:02 am - 2 replies

Author Message

André R.

Wednesday 22 October 2008 5:42:40 am

You can not set a object (hash) index in templates.
Your code can be rewritten as:

{def $compteur = 0
       $objets = array()}
									
{foreach $articles as $article}
    {set $objets = $objects|append( $article )}
    {set $compteur = inc( $compteur )}
{/foreach} 
{undef $compteur $objets}

But it doesn't make any sense since $objects is now a identical copy of $articles, and you can do that without the foreach..(ref: {def $objects = $articles})

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Alain Mangana

Wednesday 22 October 2008 7:09:01 am

merci!

http://tikdem.com
/

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu