array waarde in variable
Posted: Tue Aug 07, 2012 9:55 pm
Beste allemaal,
Sinds kort ben ik bezig met cmsms, ik ben voornamelijk Joomla gewend dus het is even overschakelen.
Ik heb vrijwel alles voor elkaar maar loopt tegen 1 issue aan. En hoop dat iemand mij kan helpen.
In een input=text heb ik staan:
{if $product.catalog_product_id == $attendants.0.kado} checked {/if}
Dit staat in een while loop.
De 0 moet dus steeds 1 hogere waarde krijgen. maar hoe?
dus elke keer bij de loop:
{if $product.catalog_product_id == $attendants.0.kado} checked {/if}
{if $product.catalog_product_id == $attendants.1.kado} checked {/if}
{if $product.catalog_product_id == $attendants.2.kado} checked {/if}
Ik heb al php tags geprobeerd, andere variable maar niets werkt.
Ik hoop dat iemand kan assisteren.
Danny
Sinds kort ben ik bezig met cmsms, ik ben voornamelijk Joomla gewend dus het is even overschakelen.
Ik heb vrijwel alles voor elkaar maar loopt tegen 1 issue aan. En hoop dat iemand mij kan helpen.
In een input=text heb ik staan:
{if $product.catalog_product_id == $attendants.0.kado} checked {/if}
Dit staat in een while loop.
De 0 moet dus steeds 1 hogere waarde krijgen. maar hoe?
dus elke keer bij de loop:
{if $product.catalog_product_id == $attendants.0.kado} checked {/if}
{if $product.catalog_product_id == $attendants.1.kado} checked {/if}
{if $product.catalog_product_id == $attendants.2.kado} checked {/if}
Ik heb al php tags geprobeerd, andere variable maar niets werkt.
Ik hoop dat iemand kan assisteren.
Danny