设置视图文件名
$view = new View();
$view->set_filename('test_view');
View Core_View::set_filename( string $file )
参数列表
参数 类型 描述 默认值 $file
string
$file
View
public function set_filename($file)
{
$realfile = Core::find_file('views', $file);
if ($realfile)
{
$this->_file = $realfile;
}
else
{
throw new Exception(__('The view :file does not exist', array(':file'=>$file)));
}
return $this;
}