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

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -