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