[eluser]therealmaloy[/eluser]
Colin
i guess that's a correct array, just that he is assigning it to a variable so it is equivalent to
$datarray = array (
3 => ‘http://example.com/news/article/2006/03/’,
7 => ‘http://example.com/news/article/2006/07/’,
13 => ‘http://example.com/news/article/2006/13/’,
26 => ‘http://example.com/news/article/2006/26/’
);
$data = array (‘title’ => “Calendar Application”, $dataarray);
you could access it in the same scope and/or as long as the variable is visible using $data['title'] and $data[1][x] for your dataarray
correct me if i'm wrong.
but still this would pose a problem for passing the variable to the view, the idea is that you don't have any key that would be translated to an equivalent variable in the view. the solution would be assigning a key to this.
cnother
Colin's code is very much the solution for your problem