is it a good idea to add a script path in postDispatch of a controller? Or is the init() or preDispatch() function a better place for it?
public function postDispatch() {
$this->view->addScriptPath( path/to/scripts );
}
In fact adding a script path in postDispatch does not work correctly.
So where I should put it - init() or preDispatch()?