yes, you can make the call, but for things like that, you might be interested in this usage case:

// from views (you'd be essentially over writing the file at that index.
// but this would be a application "Best practice" you'd decide for
// the whole project
$view->HeadScript()->offsetSetFile(-50, '/jquery/testfile.js');

// from layout
$view->HeadScript()->arsort();
echo $view->HeadScript();



Richard Shank wrote:
dinok wrote:
Store the scripts in an array in the registry or in an action helper.
Remove duplicate keys / check before adding them (array_key_exists) and at
the end you render them with the helper (for example, build an
headScriptMultiple($myArray) viewHelper).
Thats a good suggestion. I'm hoping that maybe something like that can be implemented into the "official" HeadScript.


Reply via email to