ErrorException [ Notice ]: Undefined variable: material_photos

APPPATH/classes/Controller/Ad.php [ 70 ]

65 						->where('material_id','=',$val->mat_id)
66 						->find_all();
67 				$material_photos[$val->mat_id] = $ph;
68 			}
69 			
70 			$block->set('material_photos', $material_photos);	
71 		}
72 			
73 		$global->set('content', $block->render());
74 		$this->response->body($global->render());
75 	}
  1. APPPATH/classes/Controller/Ad.php [ 70 ] » Kohana_Core::error_handler(arguments)

  2. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Ad->action_index()

  3. {PHP internal call} » Kohana_Controller->execute()

  4. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

  5. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  6. SYSPATH/classes/Kohana/Request.php [ 993 ] » Kohana_Request_Client->execute(arguments)

  7. DOCROOT/index.php [ 117 ] » Kohana_Request->execute()

Environment