How can I get Google's CDN with fallback working in Zend Framework(Zend_View)?
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js"></script>
<script type="text/javascript">!window.jQuery && document.write('<script src="/base/js/jquery-1.7.2.js"></script>');</script>
Thanks for your help.
The way you wrote is correct.
I just added 2 things.
1) Base URL
2) Unescaping the special chars
For using head script view helper
You can do in view this
or in controller (update base url above)
FYI: Head Script Helper