我已经安装了使用刀片的所有必需组件,但是在运行代码时收到错误消息。 这是我的MY_Controller文件
<?php
defined('BASEBATH') OR exit ('No direct script access allowed');
use Coolpraz\PhpBlade\PhpBlade;
class MY_Controller extends CI_Controller{
protected $views = APPBATH. 'views';
protected $cache = APPBATH. 'cache';
protected $blade;
public function __construct(){
parent:: __construct();
$this->$blade = new PhpBlade($this->$views, $this->$cache);
}
}