23 $this->_view->loadLayout();
26 $isEmptyRequestData = empty(
$data) || !isset(
$data[
'id']);
27 $isEmptyPreviewData = !$this->
_getSession()->hasPreviewData() || empty($this->
_getSession()->getPreviewData());
29 if ($isEmptyRequestData && $isEmptyPreviewData) {
40 if (isset($allStores[0])) {
41 $defaultStore = $allStores[0];
44 $data[
'preview_store_id'] = $defaultStore ? $defaultStore->getId() :
null;
45 $this->_view->getLayout()->getBlock(
'preview_form')->setFormData(
$data);
46 $this->_view->getPage()->getConfig()->getTitle()->prepend(
__(
'Newsletter Templates'));
47 $this->_view->renderLayout();
_forward($action, $controller=null, $module=null, array $params=null)