Вход Регистрация
Файл: databasr/application/libraries/Template.php
Строк: 19
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

require_once(
APPPATH.'libraries/smarty/Smarty.class.php');

class 
Template extends Smarty {

    function 
__construct()
    {
        
parent::__construct();
        
$this->setTemplateDir('templates');
        
$this->setCompileDir(APPPATH.'cache/smarty/compiled');
        
$this->setConfigDir(APPPATH.'libraries/smarty/configs');
        
$this->setCacheDir(APPPATH.'cache/smarty/cache');

        if (
method_exists($this'assignByRef')) {
            
$ci =& get_instance();
            
$this->assignByRef("ci"$ci);
        }

        
$this->force_compile true;
        
$this->caching false;
        
$this->cache_lifetime 0;
    }

    function 
view($fileUrl)
    {
        
parent::display('templates/' $fileUrl '.tpl');
    }


}
Онлайн: 1
Реклама