Problem about Controller_{event}_Handler
Hi All,
I added an event {event name="BeginBody"} in default.master.tpl and want to fire it for every page, but many controller I need to add, for example:
public function DiscussionsController_BeginBody_Handler($Sender) {
}
public function DiscussionController_BeginBody_Handler($Sender) {
}
public function CategoriesController_BeginBody_Handler($Sender) {
}
My question is how to apply handler to all controller more easily? something like this?
public function AllController_BeginBody_Handler($Sender) {
}
Thanks ~ 
0
Best Answer
-
Todd
Vanilla Staff
The word you want is Base.
public function Base_BeginBody_Handler($Sender) { ... }0
Answers
The word you want is Base.
public function Base_BeginBody_Handler($Sender) { ... }