<!--?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
* common class
*
* @package default
* @author mark
**/
class common extends CI_Controller {
public function __construct(){
parent::__construct();
}
/**
* 重寫view 使能改變模板文件後綴等
*
* @return void
* @author meigong
**/
function view($file, $data, $flag = false){
if (true === $flag) {
return $this--->load->view($file.'.tpl', $data, true);
}else {
echo $this->load->view($file.'.tpl', $data, true);
}
}
}
?>