template()->setPath(App::frontend()->template()->getPath(), implode(DIRECTORY_SEPARATOR, [My::path(), 'default-templates', 'tpl'])); App::frontend()->template()->addBlock('activityReports', Template::activityReports(...)); App::frontend()->template()->addValue('activityReportFeedID', Template::activityReportFeedID(...)); App::frontend()->template()->addValue('activityReportTitle', Template::activityReportTitle(...)); App::frontend()->template()->addValue('activityReportDate', Template::activityReportDate(...)); App::frontend()->template()l->addValue('activityReportContent', Template::activityReportContent(...)); return true; } }