Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

FireEvent in views

omnitonomniton New
edited August 2011 in Vanilla 2.0 - 2.8
hi Vanilla Team,

I'm working on mailing list plugin for forum (I'm going to migrate form fudforum). The plugin extends category table with email address column. I had to make new view files (addcategory.php and editcategory.php) and placed in theme folder. But would be great to add FireEvent call inside original view file (before form close) to avoid unnecessary hacking (e.g. addcategory.php):
...
<?php $this->FireEvent('AddCategoryView'); ?>
< /ul>
<?php echo $this->Form->Close('Save'); ?>
...
It could be very useful if add this hook in each view file.

Thanks,
Andrey
Tagged:
Sign In or Register to comment.