I have a stclass object which i am initializing in PHP code. The object returns
object(stdClass)[238]
public '0' => string 'Jun 20, 2012 03:02 PM' (length=21)
public '1' => string 'Jun 20, 2012 03:26 PM' (length=21)
public '2' => string 'Jun 21, 2012 01:12 PM' (length=21)
on doing var_dum($myObjectName)
I am passing this to smarty template where i need to access values of stdClass object at index [i] based on a javascript variable .
I have tried several of these:
{/literal} {$myObjectName}{literal}
{/literal} {$myObjectName.0}{literal}
{/literal} {$myObjectName.'0'}{literal}
{/literal} {$myObjectName.'myLocalJSVariable'}{literal}
but i am not bale to fetch value of Object at particular index