Last active
August 29, 2015 14:22
-
-
Save kurozumi/a94737b95360897a1178 to your computer and use it in GitHub Desktop.
【CodeIgniter3】コントローラーでtwigライブラリを設定
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
class Welcome extends CI_Controller { | |
public function index() | |
{ | |
$this->load->library('twig'); | |
$data = array('test_value' => 'こんにちは'); | |
$this->twig->display("twig.html", $data); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment