Hi All,
I think I have a rather simple problem but I don't know what I'm doing wrong:
[code=php]
$old_args = $this->registry->router->arguments();
foreach($old_args as $arg)
{
if($arg != '')
{
list($key, $val) = explode('-', $arg, 2);
$args[$key] = $val;
echo $args[$key] . '<br>';
}
}
print_r($old_args);
echo '<br>';
print_r($args);
exit;[/code]
Will print this:
entertainment
fietsverhuur
Array ( [0] => faciliteiten-entertainment [1] => faciliteiten-fietsverhuur )
Array ( [faciliteiten] => fietsverhuur )
Edit: I tested it without the if condition aswell but the problem persists.
So basically my problem is that when I fill one array from another I somehow lose one value.
Thanks in advance!