Looking at the source for view.php I see that addScript() simply appends a new script to __scripts. I'm wondering if it would be worthwhile to add a 3rd param to addScript() so that the new script can be inserted at some other position than the end. Something like:
array_splice($this->__scripts, $position, count($this->__scripts), array_merge(array($name), array_slice($this->__scripts, $position))); That's the basic idea. $position would have to be checked against the actual length of the array, of course. Or, maybe an array could be passed instead of the integer position. Something like array('insertBefore'=>'another_script') Thoughts? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---