本文整理汇总了PHP中add::load_lib方法的典型用法代码示例。如果您正苦于以下问题:PHP add::load_lib方法的具体用法?PHP add::load_lib怎么用?PHP add::load_lib使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类add
的用法示例。
在下文中一共展示了add::load_lib方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: trigger_error
trigger_error("Cache directory is not writeable", E_USER_WARNING);
unset($cache_file, $cache_files);
}
if (!isset($C->assets_dir)) {
$C->assets_dir = $C->root_dir . '/assets';
}
if (!isset($C->images_dir)) {
$C->images_dir = $C->assets_dir . '/images';
}
if (!isset($C->css_dir)) {
$C->css_dir = $C->assets_dir . '/css';
}
$C->js_dir = $C->assets_dir . '/js';
$C->domain = ($C->sub_domain ? "{$C->sub_domain}." : "") . $C->super_domain;
$C->base_url = "http://{$C->domain}{$C->path}";
set_include_path($C->incs_dir);
/**
* assets
* @author albertdiones@gmail.com
*/
$C->assets_path = $C->path . 'assets/';
$C->css_path = $C->assets_path . 'css/';
$C->js_path = $C->assets_path . 'js/';
$C->images_path = $C->assets_path . 'images/';
$C->assets_libs_path = $C->assets_path . 'libs/';
/**
* Libraries
*/
add::load_lib('adodb');
add::load_lib('smarty');
示例2: execute
<?php
add::load_lib('phpmailer');
/**
* ctrl_tpl_mailer
* Abstract controller class for emails
*
* @since ADD MVC 0.2
*/
abstract class ctrl_tpl_mailer extends phpMailer implements i_ctrl, i_ctrl_with_view
{
public $WordWrap = 70;
protected static $views;
protected $data = array();
/**
* Execute
*
* @since ADD MVC 0.6
*/
public function execute()
{
$this->process_data();
return parent::Send();
}
/**
* Process the data
*
* @since ADD MVC 0.6
*/
public function process_data()
{
示例3: load_lib
static function load_lib($lib_name)
{
return add::load_lib($lib_name);
}