framework icon indicating copy to clipboard operation
framework copied to clipboard

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

Open augushong opened this issue 3 years ago • 0 comments

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

 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();

augushong avatar Apr 14 '22 02:04 augushong