php - Zend MVC:: How can javascript file + javascript code inserted to partial for head or body area? -
how can javascript file + javascript code inserted partial head or body area?
[inside view call insert head headscript , body inlinescript - not works inside partial(if wrong please write). ]
thanks,
yosef
i have not tried this, have tried using following code inside partial
$view = zend_layout::getmvcinstance()->getview(); $view->headscript()->appendfile('/scripts/somefile.js');
i know saying doesn't work, maybe method getting view instance?
in theory should work.
Comments
Post a Comment