hii I'm new in cake php.my table is users..and my controler code is..and viewallpolice code is : public function viewallpolice($id=NULL){
		$customer =$this->Session->read('customer_id'); 
		
		if($customer>0){
			
		$this->loadModel('Policy');
			
		
		$results = $this->Policy->find('all',array('conditions' => array('customer_id' =>$customer)));
						
				
	    $this->set('results',$this->Policy->read(null,$id));
		 		
		}else{
			
				$this->Session->setFlash('error');
					
			}
	
	} 
   view all police code:
   <?php foreach ($user as $result) ?>
<p>Customer Name /Mobile : <?php echo $result['Policy']['customer_name']; ?></p>    


Notice (8): Undefined variable: user [APP\View\User\viewallpolice.ctp, line 1]

Warning (2): Invalid argument supplied for foreach() [APP\View\User\viewallpolice.ctp, line 1]

Customer Name /Mobile :

Notice (8): Undefined variable: result [APP\View\User\viewallpolice.ctp, line 2]