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


PHP repository::init_plugins方法代碼示例

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


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

示例1: repository

$config->set('lang', $cfg_lang);
$sf_path_base = $config->cms('path_base');
$sf_path_http_frontend = $config->client('path_http_edit');
$config->setVal('env', 'path_frontend_http', $sf_path_http_frontend . $config->client('path_rel'));
$config->setVal('env', 'path_frontend', $sf_path_base . $config->client('path_rel'));
$config->setVal('env', 'path_frontend_fm_http', $sf_path_http_frontend . $config->client('path_rel') . $config->client('path_fm_rel'));
$config->setVal('env', 'path_frontend_fm', $sf_path_base . $config->client('path_rel') . $config->client('path_fm_rel'));
$config->setVal('env', 'path_frontend_css_http', $sf_path_http_frontend . $config->client('path_rel') . $config->client('path_css_rel'));
$config->setVal('env', 'path_frontend_css', $sf_path_base . $config->client('path_rel') . $config->client('path_css_rel'));
$config->setVal('env', 'path_frontend_js_http', $sf_path_http_frontend . $config->client('path_rel') . $config->client('path_js_rel'));
$config->setVal('env', 'path_frontend_js', $sf_path_base . $config->client('path_rel') . $config->client('path_js_rel'));
// Repository laden
$rep = new repository();
// Run init Plugins
if ($cfg_rep['repository_init_plugins']) {
    $rep->init_plugins();
}
// basecontroller
$sf_controller = '';
$sf_area = 'index';
$pairs = explode('_', $area, 2);
// controller
if (array_key_exists('0', $pairs)) {
    if (strlen(trim($pairs['0'])) > 0) {
        $sf_controller = $pairs['0'];
    }
}
// area
if (array_key_exists('1', $pairs)) {
    if (strlen(trim($pairs['1'])) > 0) {
        // transform area to camelcase
開發者ID:rbraband,項目名稱:sefrengo,代碼行數:31,代碼來源:main.php


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