<?php
class Controller {
	var $layout = 'default';

	public function load_view($view) {
		require(VIEW_DIR . '/' . $view . '.php');
	}

	public function back_with_message($message = '') {
		alert($message);
		back();
	}

	public function back() {
		echo '"<script type="text/javascript">history.back();</script>';
	}

	public function redirect_to($where) {
		echo '<meta http-equiv="refresh" content="0; URL=' . $where . '">';
	}
}


<?php
class Controller {
	var $layout = 'default';

	public function load_view($view) {
		require(VIEW_DIR . '/' . $view . '.php');
	}

	public function back() {
		echo '"<script type="text/javascript">history.back();</script>';
	}

	public function redirect_to($where) {
		echo '<meta http-equiv="refresh" content="0; URL=' . $where . '">';
	}
}


Remove back_with_message function for using flash data structure
Remove back_with_message function for using flash data structure

git-svn-id: ee4035a36106ffeee36a50f38a2c987ce3004d33@131 cc3e2240-c383-0410-974a-c2160eca7f04
