XenForo
Administrative
- Thread starter
- Admin
- #1
Hi,
I've got a problem I've been bashing my head with now for a while.
When a StyleProperty related to my addon is changed, I want to trigger an event.
I thought this would be possible with:
PHP:
In the dev env, the event in triggered when a value is saved.
When I install it to my live site, the event...
Read more
ادامه مطلب...
I've got a problem I've been bashing my head with now for a while.
When a StyleProperty related to my addon is changed, I want to trigger an event.
I thought this would be possible with:
PHP:
Code:
public static function entity_post_save(Entity $entity)
{
if ($entity instanceof StyleProperty && $entity->addon_id == 'Me/Addon') {
triggerEvent();
}
}
In the dev env, the event in triggered when a value is saved.
When I install it to my live site, the event...
Read more
ادامه مطلب...