@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | // default config |
| 46 | 46 | $this->config = [ |
| 47 | 47 | 'paths' => [VIEWPATH], |
| 48 | - 'cache' => APPPATH . '/cache/twig', |
|
| 48 | + 'cache' => APPPATH.'/cache/twig', |
|
| 49 | 49 | ]; |
| 50 | 50 | |
| 51 | 51 | $this->config = array_merge($this->config, $params); |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | */ |
| 134 | 134 | public function display($view, $params = []) |
| 135 | 135 | { |
| 136 | - $CI =& get_instance(); |
|
| 136 | + $CI = & get_instance(); |
|
| 137 | 137 | $CI->output->set_output($this->render($view, $params)); |
| 138 | 138 | } |
| 139 | 139 | |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | // after loading CodeIgniter functions in a controller. |
| 152 | 152 | $this->addFunctions(); |
| 153 | 153 | |
| 154 | - $view = $view . '.twig'; |
|
| 154 | + $view = $view.'.twig'; |
|
| 155 | 155 | return $this->twig->render($view, $params); |
| 156 | 156 | } |
| 157 | 157 | |