本文整理匯總了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();