本文整理汇总了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