Notice[8]: Undefined index: driver

/application/code/front/controller/account/driver.php [ 6 ]

 1 <?php
 2 class ControllerAccountDriver extends Engine_Controller {
 3 	public function index() {
 4 
 5 	    //echo $_SESSION['test'];
 6 	    $test=$_SESSION['driver'];
 7 	    if ($_SESSION['driver']!='driver') {
 8 	        //$this->session->data['redirect'] = $this->url->link('account/account', '', 'SSL');
 9 
10 	        $this->redirect($this->url->link('account/driverlogin', '', 'SSL'));
11 	    }

Notice[8]: Undefined index: driver

/application/code/front/controller/account/driver.php [ 7 ]

 2 class ControllerAccountDriver extends Engine_Controller {
 3 	public function index() {
 4 
 5 	    //echo $_SESSION['test'];
 6 	    $test=$_SESSION['driver'];
 7 	    if ($_SESSION['driver']!='driver') {
 8 	        //$this->session->data['redirect'] = $this->url->link('account/account', '', 'SSL');
 9 
10 	        $this->redirect($this->url->link('account/driverlogin', '', 'SSL'));
11 	    }
12 

Warning[2]: Cannot modify header information - headers already sent by (output started at /homepages/28/d786682315/htdocs/freeki.com/index.php:150)

/lib/Engine/Controller.php [ 29 ]

24 	protected function forward($route, $args = array()) {
25 		return new Engine_Action($route, $args);
26 	}
27 
28 	protected function redirect($url, $status = 302) {
29 		header('Status:'.$status);
30 		header('Location:'.str_replace('&amp;', '&', $url));
31 		exit();
32 	}
33         
34         protected function setLayout(){

Warning[2]: Cannot modify header information - headers already sent by (output started at /homepages/28/d786682315/htdocs/freeki.com/index.php:150)

/lib/Engine/Controller.php [ 30 ]

25 		return new Engine_Action($route, $args);
26 	}
27 
28 	protected function redirect($url, $status = 302) {
29 		header('Status:'.$status);
30 		header('Location:'.str_replace('&amp;', '&', $url));
31 		exit();
32 	}
33         
34         protected function setLayout(){
35             $this->template = 'page/layout.tpl';