Ocular-Template-Library
Ocular-Template-Library copied to clipboard
A template/layout library for CodeIgniter
Getting "Parse error: syntax error, unexpected 'yield' (T_YIELD), expecting identifier (T_STRING) in .../application/libraries/Template.php on line 314", when using PHP 5.5+, where there is a new keyword "yield", which conflicts with...
Apologies if I'm missing something really simple here, but I need this functionality and I can't see how it is achieved. This would be the equivalent of the standard CI...
500 Internal Server Error when Template library wants to load config file on line #173 of ~/application/libraries/Template.php $this->ci->config->load('template'); When I remove this line and autoload the config file then it...
Hello, I'm trying to put in my aplication.php file to load a menu.php file. but the browser stop in that place. i don't find any documentation about the function in...
Just as the title suggests, when using the set_message method to set flashdata, the message displayed once on the resulting render and again on the subsequent page load. I looked...
if ( ! defined('BASEPATH')) exit('No direct script access allowed'); if ( ! function_exists('render')) { function render($data = array()) { $CI =& get_instance(); ``` $CI->template->set($data); $CI->template->render(); } ``` } // ------------------------------------------------------------------------...
Because it uses session library from CI Core, I had to follow two steps to get messages working correctly: 1. Assign an encryption key in config/config.php; 2. Autoload the session...
public function theme() { return $this->active_theme(); } active_theme() is not a function, it is a variable