public function preDispatch()
{
$preferencesService = \Zend_Registry::get('container')->getService('system_preferences_service');
$themesService = \Zend_Registry::get('container')->getService('newscoop_newscoop.themes_service');
$themePath = $themesService->getThemePath();
$this->view = new Newscoop\SmartyView();
$this->view->addScriptPath(APPLICATION_PATH . '/views/scripts/')->addScriptPath(realpath(APPLICATION_PATH . "/../themes/{$themePath}"));
$this->view->addPath(realpath(APPLICATION_PATH . "/../themes/{$themePath}"));
$this->getHelper('viewRenderer')->setView($this->view)->setViewScriptPathSpec(':controller_:action.:suffix')->setViewSuffix('tpl');
$this->getHelper('layout')->disableLayout();
$this->view->publication = $this->getRequest()->getServer('SERVER_NAME', 'localhost');
$this->view->site = $preferencesService->SiteTitle;
$this->_helper->contextSwitch()->addActionContext('comment-notify', 'xml')->initContext();
}