If you want to pass data from the controller to the view, you usually use something like:
Not really new, is it? What’s less known is that you can use an array syntax:
$this->set(array('key1' => 'value1', 'key2' => 'value2'));
As you would expect, the keys are available as $key1 resp. $key2 in the view.