kohana_load_view_exception.diff

Colin Mollenhour, 04/20/2009 02:49 am

Download (613 Bytes)

 
Controller.php (working copy)
69 69
		// Views are straight HTML pages with embedded PHP, so importing them
70 70
		// this way insures that $this can be accessed as if the user was in
71 71
		// the controller, which gives the easiest access to libraries in views
72
		include $kohana_view_filename;
72
		try{
73
			include $kohana_view_filename;
74
		}catch(Exception $e){
75
			ob_end_clean();
76
			throw $e;
77
		}
73 78

  
74 79
		// Fetch the output and close the buffer
75 80
		return ob_get_clean();