Account Controller um Action erweitern *best practice*

Mit den folgenden Snippet hat es bei mir einwandfrei funktioniert. :-)

public static function getSubscribedEvents()
{
    return [
        'Enlight_Controller_Action_Frontend_Account_Test' => 'onAccountTestAction'
    ];
}

 

public function onAccountTestAction(\Enlight_Event_EventArgs $args)
{
    /** @var Enlight_Controller_Action $subject */
    $subject = $args->getSubject();

    $subject->View()->loadTemplate( __DIR__. '/../../Views/frontend/account/test.tpl');

    $args->setReturn(true);
    return true;
}