Fork me on GitHub
Current release is 2.1.6 (21 Nov 2014).

Users who have not yet upgraded to 2.1 should get security release (1 Nov 2014). We will stop providing these security releases to 2.0 at the end of this year.

is there a Smarty tag equivalent to $this->FireEvent() ?

edited January 2011 in Vanilla 2.0 Help
Howdy. I am currently working on theming my Vanilla Forums install and the current order of business is to setup a default.master.tpl Smarty template. Looking at the PHP version, I notice that the following method is called towards the end, presumably so that plugins can do something after the main page content has been rendered:

<?php $this->FireEvent('AfterBody'); ?>

The docs for template tags are here:

There is no mention of the FireEvent call in the above list and the default.master.tpl template found under the stock mobile theme also does not have anything like this in it.

So my question is whether there is a Smarty based way to keep the same functionality or do we lose the ability to have plugins called via events if we go with Smarty templates over the PHP based views? It is definitely preferable to reduce to the amount of layout tangled up with program logic which is why going with Smarty for the templates is very much preferred.



Sign In or Register to comment.