Details
Description
Not sure if this is possible (to discern locations of javascript and/or css files from Zend_View), but here are a couple use-cases describing what these methods might do:
<?php echo $this->javascript('jquery.js');?>
outputs:
<script type="text/javascript" src="/js/jquery.js"/>
<?php echo $this->css('site.css');?>
outputs:
<link rel="stylesheet" type="text/css" media="screen" href="/css/site.css"/>
Unsure if there should be conventional defaults (convention of document_root/ or whatever)?
Not settng a release for this, as I want more discussion/votes before committing to it. Regardless, if implemented, these would be as view helpers, not as direct methods of Zend_View, and most likely would either need settings in the Registry for the locations, or require the user to pass in the base paths.