ZF-8349: Move internal Head|Script Helpers pointer

Issue Type: Improvement Created: 2009-11-20T03:57:10.000+0000 Last Updated: 2012-11-20T20:53:27.000+0000 Status: Closed Fix version(s): Reporter: Apaella (apaella) Assignee: None Tags: - Zend_View

Related issues: Attachments:


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


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)


Posted by Rob Allen (rob) on 2012-11-20T20:53:27.000+0000

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.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.