当前位置: 首页>>代码示例>>PHP>>正文


PHP config::get_config方法代码示例

本文整理汇总了PHP中config::get_config方法的典型用法代码示例。如果您正苦于以下问题:PHP config::get_config方法的具体用法?PHP config::get_config怎么用?PHP config::get_config使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在config的用法示例。


在下文中一共展示了config::get_config方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: show_message

 public static function show_message()
 {
     ob_start();
     require config::get_config('app_path') . '/bin/bloks/messages/messages.php';
     $contents = ob_get_clean();
     return $contents;
 }
开发者ID:Ate1st,项目名称:test,代码行数:7,代码来源:messages.php

示例2: get_main_tpl

 public static function get_main_tpl($name = null)
 {
     ob_start();
     if ($name == NULL) {
         require config::get_config('tpl_config')['index'];
     } else {
         require config::get_config('tpl_config')[$name];
     }
     self::$main_tpl = ob_get_contents();
     ob_end_clean();
 }
开发者ID:Ate1st,项目名称:test,代码行数:11,代码来源:render.php

示例3: model

 public static function model($filename)
 {
     if (!empty(self::$stored_models[$filename]) && is_object(self::$stored_models[$filename])) {
         return self::$stored_models[$filename];
     }
     $modules = glob(self::$include_dir . config::get_config('kos', 'module_dir') . '/*', GLOB_ONLYDIR);
     foreach ($modules as $module) {
         if (file_exists($module . '/models/' . $filename . '.php')) {
             include_once $module . '/models/' . $filename . '.php';
             $classname = $filename . '_model';
             self::$stored_models[$filename] = new $classname();
             return self::$stored_models[$filename];
         }
     }
     return false;
 }
开发者ID:markparnaby,项目名称:kos,代码行数:16,代码来源:index.php

示例4: call

 public static function call($route, $params = null)
 {
     self::$route = $route;
     self::$params = $params;
     if (!class_exists(self::$route[0] . '_controller')) {
         self::$route[0] = config::get_config('app_config')['default_controller'] . '_controller';
         messages::set_message('00', 'alert-danger');
     } else {
         self::$route[0] = self::$route[0] . '_controller';
     }
     if (!isset(self::$route[1])) {
         self::$route[1] = config::get_config('app_config')['default_action'];
     }
     if (method_exists(self::$route[0], self::$route[1])) {
         self::$route[1] = self::$route[1];
     } else {
         self::$route[1] = config::get_config('app_config')['default_action'];
         messages::set_message('01', 'alert-danger');
     }
     call_user_func_array(self::$route, self::$params);
 }
开发者ID:Ate1st,项目名称:test,代码行数:21,代码来源:controller.php

示例5: template

require('./lib/functions.php');
require('./lib/functions_default.php');
require('./lib/user.php');
require('./lib/template/template.php');
require('./lib/dbal/' . $dbms . '.php');

//Reroute all errors to our sexy error handler
set_error_handler('msg_handler');
define('MOBILE_BROWSER', detect_mobile_browser());

$db = new $sql_db();
$db->sql_connect($dbserv, $dbuser, $dbpass, $dbname, $dbport);
$template = new template();
$template->set_template();
$config = new config();
$config->get_config();
$user = new user();
page_header();

$template->assign_vars(array(
	"IS_MOBILE"	=> MOBILE_BROWSER,
));

$module = (isset($_REQUEST['module'])) ? $_REQUEST['module'] : 'home';
$method = (isset($_REQUEST['method'])) ? $_REQUEST['method'] : 'main';

if(file_exists('./modules/' . $module . '.php'))
{
	include('./modules/' . $module . '.php');
	if(class_exists($module))
	{
开发者ID:Ganonmaster,项目名称:Roadsterspot,代码行数:31,代码来源:index.php

示例6: start

 public static function start()
 {
     request::init(config::get_config('app_config'));
     controller::call(request::get_route(), request::get_params());
 }
开发者ID:Ate1st,项目名称:test,代码行数:5,代码来源:app.php

示例7: config

/**
 * @ignore
 */
if (!defined('IN_EVO')) {
    exit;
}
// run all includes
include '../classes/config.class.php';
include '../classes/members.class.php';
include '../classes/member.class.php';
include '../classes/api.class.php';
include '../classes/api_key.class.php';
include '../classes/tickers.class.php';
// open configuration
$conf = new config('../../evorc');
$conf->get_config();
// open database connection
$db = new mysqli(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DB);
if ($db->connect_error) {
    echo $db->connect_error;
}
/*
echo "<pre>";
var_dump($_POST);
echo "</pre>";
*/
// 37df021e2d95fa4a8b77b8c836f3bdc5fc102bc8
$api = new api();
if (!isset($_POST['key']) or $api->verify_key($_POST['key']) == false) {
    //if( !isset($_GET['key']) or $api -> verify_key( $_GET['key'] ) == false ) {
    echo "Invalid Key.";
开发者ID:bradz,项目名称:bradzevo2,代码行数:31,代码来源:common.php


注:本文中的config::get_config方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。