本文整理汇总了PHP中Templates::load方法的典型用法代码示例。如果您正苦于以下问题:PHP Templates::load方法的具体用法?PHP Templates::load怎么用?PHP Templates::load使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Templates
的用法示例。
在下文中一共展示了Templates::load方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* @constructor
*/
public function __construct($data_folder = '')
{
// load the config file.
$this->config = new Config();
$this->config->load($data_folder);
// load the templates.
$this->templates = new Templates();
$this->templates->load($data_folder);
// loading data files.
$this->files = new Files();
$this->files->load($data_folder, $this->config->get('pages_data'));
// initialize database.
$this->db = new Database();
//
$this->renders = new Renders();
}
示例2: define
<?php
// $Id: index.php 336 2009-03-28 10:38:54Z cubegames $
/**
* Initialization page
* @author Ryan McCue <cubegames@gmail.com>
* @package Lilina
* @version 1.0
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/
/** */
define('LILINA_PATH', dirname(__FILE__));
define('LILINA_INCPATH', LILINA_PATH . '/inc');
$settings = array();
error_reporting(E_ALL);
require_once LILINA_INCPATH . '/core/install-functions.php';
lilina_check_installed();
require_once LILINA_INCPATH . '/core/conf.php';
lilina_level_playing_field();
require_once LILINA_INCPATH . '/core/plugin-functions.php';
$timer_start = lilina_timer_start();
require_once LILINA_INCPATH . '/core/version.php';
Locale::load_default_textdomain();
require_once LILINA_INCPATH . '/core/feed-functions.php';
require_once LILINA_INCPATH . '/core/file-functions.php';
require_once LILINA_INCPATH . '/core/skin.php';
do_action('init');
Templates::load();