18 $this->_view->loadLayout();
21 $isEmptyRequestData = empty(
$data) || !isset(
$data[
'id']);
22 $isEmptyPreviewData = !$this->
_getSession()->hasPreviewData() || empty($this->
_getSession()->getPreviewData());
24 if ($isEmptyRequestData && $isEmptyPreviewData) {
35 if (isset($allStores[0])) {
36 $defaultStore = $allStores[0];
39 $data[
'preview_store_id'] = $defaultStore ? $defaultStore->getId() :
null;
41 $this->_view->getLayout()->getBlock(
'preview_form')->setFormData(
$data);
42 $this->_view->renderLayout();
_forward($action, $controller=null, $module=null, array $params=null)