You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please i have issue finding the number of item in an object returned. I have a object data as below
`public 'tags' =>
object(stdClass)[74]
public '1' =>
object(stdClass)[75]
public 'id' => string '1' (length=1)
public 'slug' => string 'fashion' (length=7)
public 'name' => string 'Fashion' (length=7)
public 'user_id' => string '1' (length=1)
public 'published' => string '1' (length=1)
public 'created_at' => null
public 'modified_at' => null
public 'uploads_count' => int 0
public '3' =>
object(stdClass)[76]
public 'id' => string '3' (length=1)
public 'slug' => string 'photographer' (length=12)
public 'name' => string 'Photographer' (length=12)
public 'user_id' => string '1' (length=1)
public 'published' => string '1' (length=1)
public 'created_at' => null
public 'modified_at' => null
public 'uploads_count' => int 0`
Hello,
Please i have issue finding the number of item in an object returned. I have a object data as below
`public 'tags' =>
And in my smarty template, i have the code below
`{foreach from=$talent->tags item=tag}
{$tag@total}
returns 1 when items are more than 1. Please what i'm i doing wrong?How can i resolve this?
Thank you.
The text was updated successfully, but these errors were encountered: