當前位置: 首頁>>代碼示例>>PHP>>正文


PHP config::getConfig方法代碼示例

本文整理匯總了PHP中config::getConfig方法的典型用法代碼示例。如果您正苦於以下問題:PHP config::getConfig方法的具體用法?PHP config::getConfig怎麽用?PHP config::getConfig使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在config的用法示例。


在下文中一共展示了config::getConfig方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 public function __construct()
 {
     // parent::__construct();
     config::getInstance();
     config::getConfig();
     $router = new Router();
     $router->explodeUri();
     /*
     apenas para checagem dos caminhos
     //echo '<p>ROUT FILE: '.$routFile.'</p>';
     echo '<pre >';
     echo '<p>ROTA COMPLETA: '.$this->getRoute().'</p>';
     echo '<p>NOME Controller: '.$this->getController().'</p>';
     echo '<p>NOME METODO: '.$this->getAction().'</p>';
     echo '</pre>';
     */
     define('ROUTE', $router->getRoute());
     define('CONTROLLER', $router->getController());
     define('ACTION', $router->getAction());
     $filename = BASEPATH . DIRECTORY_SEPARATOR . APPPATH . DIRECTORY_SEPARATOR . CONTROLLERS . DIRECTORY_SEPARATOR . ROUTE . CONTROLLER . '.controller.php';
     if (file_exists($filename)) {
         require_once $filename;
         $_controllerName = CONTROLLER;
         $_controller = new $_controllerName();
         $action = ACTION;
         if (method_exists($_controller, $action)) {
             $_controller->{$action}();
         } else {
             require_once BASEPATH . DIRECTORY_SEPARATOR . APPPATH . DIRECTORY_SEPARATOR . CONTROLLERS . DIRECTORY_SEPARATOR . 'error404.controller.php';
             $errorController = new error404();
             $errorController->index();
         }
     } else {
         require_once BASEPATH . DIRECTORY_SEPARATOR . APPPATH . DIRECTORY_SEPARATOR . CONTROLLERS . DIRECTORY_SEPARATOR . 'error404.controller.php';
         $errorController = new error404();
         $errorController->index();
     }
 }
開發者ID:Wellingtoncezar,項目名稱:pfc,代碼行數:38,代碼來源:index.php

示例2: getConfig

 /**
  * Return connection settings.
  *
  * @return config
  */
 public function getConfig()
 {
     $this->config = config::getConfig();
     $this->config = $this->config['connections'];
     return $this;
 }
開發者ID:getkep,項目名稱:kep,代碼行數:11,代碼來源:MysqlConnection.php

示例3: alipayapi

 public function alipayapi()
 {
     vendor('alipay.config');
     $this->alipay_config = config::getConfig();
 }
開發者ID:tearys,項目名稱:lucky,代碼行數:5,代碼來源:alipayapi.php

示例4: getSubscribersEmail

function getSubscribersEmail($cnx, $table_config, $email, $from, $from_name, $list_id = '')
{
    $cnx->query("SET NAMES UTF8");
    $conf = new config();
    $conf->getConfig($db_host, $db_login, $db_pass, $db_name, $table_config);
    $db = new Db();
    $db->DbConnect($db_host, $db_login, $db_pass, $db_name);
    $sql = "SELECT DISTINCT email  FROM {$conf->table_email} ";
    if (!empty($list_id)) {
        $sql .= "WHERE list_id='{$list_id}'";
    }
    $cnx->SqlRow($sql);
    if ($db->DbError()) {
        echo $db->DbError();
        return -1;
    }
    $body = "adresse email des abonnés:\n";
    $body .= "-------------------------\n";
    while ($a = $db->DbNextRow()) {
        $body .= $a[0] . "\n";
    }
    return sendEmail($conf->sending_method, $email, $from, $from_name, "Liste des adresses", $body, $conf->smtp_auth, $conf->smtp_host = '', $conf->smtp_login = '', $conf->smtp_pass);
}
開發者ID:Arnaud69,項目名稱:phpmynewsletter-2.0,代碼行數:23,代碼來源:pmn_fonctions.php

示例5: notify_url

 public function notify_url()
 {
     vendor('alipay.config');
     $this->alipay_config = config::getConfig();
 }
開發者ID:tearys,項目名稱:lucky,代碼行數:5,代碼來源:notify_url.php


注:本文中的config::getConfig方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。