private static $__controller_list = array(); private static $__widget_call_list = array(); private $__module = ''; public function __construct() { } public function view($view_name, array $data = array(), $return = FALSE) { $global_view_path = APPPATH . 'views/'; $view_name .= '.php'; $view_file = $global_view_path . $view_name; if (file_exists($view_file)) { $view_path = $global_view_path; } else { $ap = Buffer::get(URL_AP); $view_path = APPPATH . "modules/{$ap}/{$this->__module}/views/"; } if (!file_exists($view_path . $view_name)) { throw new Exception_wx(4040005, $view_name); } ob_start(); extract($data, EXTR_OVERWRITE); include $view_path . $view_name; $buffer = ob_get_contents();