Jake B.
Well-known member
- Affected version
- 2.1.0 Release Candidate 1
I'm loading smilies from the app cache so I don't need to load them again, this only gives me an array, for example:
I'm using
I'm able to reference all of the string/int/bool columns just fine:
However, if I try to use sprite_params, for example, I just get an empty array:
Edit: Actually, this may be because the cached array doesn't have sprite_mode defined, looking into that now
I'm using
$this->app()->instantiateEntity('XF:Smilie', $smilie)
to get this into an entity so I can use some additional functions on it more easily, it populates the entity object just fine:I'm able to reference all of the string/int/bool columns just fine:
Code:
dump([
$smilie->smilie_id,
$smilie->title,
$smilie->smilie_category_id,
$smilie->display_order,
$smilie->display_in_editor,
$smilie->image_url,
$smilie->image_url_2x,
]);
However, if I try to use sprite_params, for example, I just get an empty array:
Code:
dump($smilie->sprite_params);
Edit: Actually, this may be because the cached array doesn't have sprite_mode defined, looking into that now
Last edited: