Guys - this is very simple - I have an array - see below. All I want to do is pass the data from the DB to a template and display it on the screen. Once I have understood how to do that I'll be away... The code below works fine in the controller - I can echo it - var_dump it you name it!!!
BUT I cannot get the stuff in a view - I just need someone to show me an example both in the controller and in the template.
<code>
public function getStudent()
{
$members = Student::get()->where("\"Name\" = 'Sarah Berens'");
foreach($members as $member)
{
$data = array('Name' => $member->Name);
}
var_dump($data);
//return $data;
//($members);
}
</code>
I have thrashed around for hours trying to do this - poking and hoping - all sorts. But no good - Please help!! Thanks