Esempio n. 1
0
 public function addJavascript($js)
 {
     $script = (string) $js;
     $script = Zmz_Utils::clearScript($script);
     $view = Zend_Layout::getMvcInstance()->getView();
     $view->headScript()->appendScript($script);
 }
Esempio n. 2
0
 public function addJquery($js)
 {
     $script = (string) $js;
     $script = Zmz_Utils::clearScript($script);
     $this->jquery->addOnLoad($script);
 }