本文整理匯總了PHP中CI_Loader::add_package_path方法的典型用法代碼示例。如果您正苦於以下問題:PHP CI_Loader::add_package_path方法的具體用法?PHP CI_Loader::add_package_path怎麽用?PHP CI_Loader::add_package_path使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CI_Loader
的用法示例。
在下文中一共展示了CI_Loader::add_package_path方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: add_package_path
public function add_package_path($path, $view_cascade = TRUE)
{
$path = rtrim($path, '/') . '/';
// reekoheek: avoid multi packages to be added to paths
if (in_array($path, $this->_ci_library_paths)) {
return;
}
return parent::add_package_path($path, $view_cascade);
}
示例2: add_package_path
/**
* Add Package Path
*
* Extends package path to allow the form
* paths
*
* @param string $path
*/
public function add_package_path($path)
{
$path = rtrim($path, '/') . '/';
array_unshift($this->_ci_form_paths, $path);
parent::add_package_path($path);
}
示例3: add_module
/**
* Add Module
*
* Allow resources to be loaded from this module path
*
* @param string
* @param boolean
*/
public function add_module($module, $view_cascade = TRUE)
{
if ($path = $this->find_module($module)) {
// Mark module as loaded
array_unshift($this->_ci_modules, $module);
// Add package path
parent::add_package_path($path, $view_cascade);
}
}
示例4: add_package_path
public function add_package_path($path, $view_cascade = TRUE)
{
$path = rtrim($path, '/') . '/';
array_unshift($this->_ci_widget_paths, $path);
parent::add_package_path($path, $view_cascade);
}