Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复试图调用方法没达到文档预期效果的问题; #2692

Open
wants to merge 1 commit into
base: 6.0
Choose a base branch
from

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.

None yet

1 participant