Skip to content

Instantly share code, notes, and snippets.

@jjab2020
Created October 11, 2019 01:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jjab2020/52c1811a8af889edc9e11de5cd84a24a to your computer and use it in GitHub Desktop.
Save jjab2020/52c1811a8af889edc9e11de5cd84a24a to your computer and use it in GitHub Desktop.
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
use Coolpraz\PhpBlade\PhpBlade;
class MY_Controller extends CI_Controller {
protected $views = APPPATH . 'views';
protected $cache = APPPATH . 'cache';
protected $blade;
public function __construct(){
parent::__construct();
$this->blade = new PhpBlade($this->views, $this->cache);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment