Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
【CodeIgniter】HTMLヘルパーにCodeIgniter Simple and Secure Twigライブラリ用のtwig_render関数を追加して共通テンプレートを作成する
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
if ( ! function_exists('twig_render'))
{
function twig_render($view, $params = [])
{
$CI =& get_instance();
return $CI->twig->render($view, $params);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.