Thanks a lot :)
However, how to do this using a controller? I have fancybox and configured ajax layout:
$this->view->layout()->setLayout('ajax'); $errors = array('You have lost your rights to download this clip, you have downloaded it the maximum amount of times.'); $this->render($this->view->partial('partials/errors.phtml', 'default', array('errors' => $errors)), NULL, true);
A popup window is necessary, but with the following error:
Problem: Method "partial" does not exist and was not trapped in __call()
I assumed that the partial expression this this → view-> would be the same as using $ this-> partial inside the view template, but I think not. Ideas?
PERFORMANCE ORDER:
Bootstrap initView, added:
$view->addScriptPath('../application/layouts/partials');
Moved my partial files to this directory. Then in my controller, I:
$this->view->layout()->setLayout('ajax'); $this->view->form = $form; $this->renderScript('login.phtml');
Thank you for #zftalks SmartSsa
azz0r
source share