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