Skip to content

Conversation

@augushong
Copy link

之前的问题,想要临时切换引擎必须用下面的写法:

 View::engine('php');

View::assign('test','test');
View::config([
    'view_suffix'=>'php'
]);

  return View::fetch();

以下写法有问题,下面的方法既无法修改配置,也无法传递test变量:

  View::assign('test','test');
  View::config([
      'view_suffix'=>'phps'
  ]);

  return View::engine('php')->fetch();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant