使用views/layout/下的布局
class CountryController extends Controller
{
// public $layout = false; //不使用布局
//public $layout boolean或者string类型
$this->renderPartial(['view', 'id' => $model->code]);
//该方法不使用布局
$this->redirect(['view', 'id' => $model->code])
//该方法使用布局默认main 通过$layout更改