} /**
* When index backend module was loaded, add our snippet- and template-directory
* Also extend the template
*
* @return void
*/
public function onBackendIndexPostDispatch(Enlight_Controller_ActionEventArgs
$args) { $args->
getSubject()->
View()->
addTemplateDir( __DIR__ . '/Views/'
);
// if the controller action name equals "load" we inject our update check
if ($args->
getRequest()->
getActionName() === 'load'
) { $args->
getSubject()->
View()->
extendsTemplate( 'backend/index/view/swag_update_menu.js'
);
} }