In the url function first we define the controller, action and parameters. Then we need to add the 'default' attribute or else the url is formed with the existing url in the browser.
$this->url(array('controller'=>'events','action'=>'view','id'=>1),'default',true);
$this->url(array('controller'=>'events','action'=>'view','id'=>1),'default',true);