/** * @param string $template Template to render * @param string $layout Current price layout * @param string $hash Hash string for communication between the elements in/out modal window * @return string */ public function ajaxModalWindow($template = 'default', $layout = 'default', $hash) { $this->setTemplate($template); $this->cache = false; $this->hash = $hash; $this->getParameters($template); $this->getConfigs(); $html = $this->render(array('template' => $template, 'layout' => 'modal', '_layout' => $layout, 'modal_template' => null)); return parent::renderLayout($this->getLayout('_modal.php'), array('html' => $html)); }