Accessing an array in MVC style

This object of this tutorial is to present 3 concepts


 * MVC (Model-View-Controller)
 * Arrays
 * The Foreach loop

-- The View --

view.html.php

getModel; $capitals = $model->get_capitals; $this->assignRef('capitals',$capitals); parent::display($tpl); } }

-- The Views template--

capitals as $key => $row){ echo $key. " is capital of ". $row. " "; }

?>

-- The Model --

 "Ireland",		"London" => "England",		"Canberra" => "Australia",		"Budapest"=> "Hungary"	); return ($array); } }