Msg#: 4270030 posted 10:14 am on Feb 21, 2011 (gmt 0)
I'm trying to dynamically change parts of an array.
It's a Joomla! 1.5.x website. The I get the array by using the following code: $headerstuff = $this->getHeadData(); $scripts = $headerstuff['scripts']; print_r ($scripts);
I've been trying several things and I found a 1001 pages that tell me how to "unset" certain bits of the array, for instance [eboga.org ]. I found [pastebin.com...] but I can't get that to work either.
Any help or any pointers into the right direction would be greatly appreciated.
Msg#: 4270030 posted 5:47 pm on Feb 23, 2011 (gmt 0)
So basically you are attempting to convert the urls to absolute urls including the scheme and domain? Do you have a function defined yet? If all the keys are always going to be relative paths you could create a new array with absolute paths. Something like this ...
Msg#: 4270030 posted 2:37 pm on Feb 24, 2011 (gmt 0)
you tell em that. But no, the client gets what he/she is asking for. Anyway that's not the point.
I'd still like to figure out how to unset a certain script when I want to. Right now I'm doing it the other way around, unsetting everything and then adding the right scripts by hand. It works, but it's a nasty hack.