You might want to try using the (now encouraged) method for specifying the route:
<?=$html->link('<h1>'.$posts['Post']['name'].'</h1>', array('controller'=>'posts','action'=>'view',$posts['Post']['id']), null, null, false);?>
The undefined index error is likely to missing the Time helper in the $helpers declaration in the controller class.
var $helpers = array('Time','Html','Ajax','Form','Javascript'); //anything else you may need