<NME> Controller.php
<BEF> <?php
class Controller
{
	public $module = '';
	public $action = '';
	public $layout = '';
	public $is_ajax = false;
	public $view_path = array('views');
	// 默认不设置, 根据 App::include_paths() 的返回值决定要显示的 view
	function init($ctx){
	}
	
	function _view($m){
		_redirect($this->_view_url($m));
	}
		_redirect($this->_view_url($m));
	}
	
	function _new_url(){
		return _action('new', null, $this->module);
	}
	
	function _list_url(){
		return _action('list', null, $this->module);
	}
	
	function _save_url(){
		return _action('save', null, $this->module);
	}
	
	function _update_url(){
		return _action('update', null, $this->module);
	}
	
	function _view_url($m){
		return _action('view', $m, $this->module);
	}
	
	function _edit_url($m){
		return _action('edit', $m, $this->module);
	}
}


<MSG> update

<DFF> @@ -10,6 +10,9 @@ class Controller
 	function init($ctx){
 	}
 	
+	function index($ctx){
+	}
+	
 	function _view($m){
 		_redirect($this->_view_url($m));
 	}

update