ZF-8349: Move internal Head|Script Helpers pointer

Description

In my FrontController::preDispatch function I add (if they exists) some js/css files related to module, controller, action

{{ $module = $this->getRequest()->getModuleName(); $controller = $this->getRequest()->getControllerName(); $action = $this->getRequest()->getActionName(); $url = "/$module/$controller/$action";

$baseCss = APPLICATION_PATH . '/../html/styles/auto'; $css = array( "$baseCss/$module.css" => WEB_ROOT ."styles/auto/$module.css" ,"$baseCss/$module/$controller.css" => WEB_ROOT ."styles/auto/$module/$controller.css" ,"$baseCss/$module/$controller/$action.css" => WEB_ROOT ."styles/auto/$module/$controller/$action.css" ); $baseCnt =9999; foreach($css as $fs=>$web) if(file_exists($fs)) $this->view->headLink()->offsetSetStylesheet($baseCnt++, $web); }}

Then in my layout HEAD section I add some css

{{ $this->headLink()->appendStylesheet(WEB_ROOT.'jquery/ui/ui.autocomplete.css'); }}

I would need to reset the internal counter otherwise in will be included after those defined in preDispatch.

Something like $this->view->headScript()->offsetSetIndex(1)

Comments

Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".

Feel free to re-open and provide a patch if you want to fix this issue.