mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-10 05:22:41 +00:00
Merge remote branch 'origin/2.0' into 2.0-class-loading
Conflicts: lib/Cake/tests/cases/libs/controller/component.test.php lib/Cake/tests/cases/libs/controller/controller.test.php lib/Cake/tests/cases/libs/controller/pages_controller.test.php
This commit is contained in:
commit
22581516db
14 changed files with 150 additions and 263 deletions
|
@ -61,24 +61,6 @@
|
|||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads component/components from LIBS. Takes optional number of parameters.
|
||||
*
|
||||
* Example:
|
||||
*
|
||||
* `uses('flay', 'time');`
|
||||
*
|
||||
* @param string $name Filename without the .php part
|
||||
* @deprecated Will be removed in 2.0
|
||||
* @link http://book.cakephp.org/view/1140/uses
|
||||
*/
|
||||
function uses() {
|
||||
$args = func_get_args();
|
||||
foreach ($args as $file) {
|
||||
require_once(LIBS . strtolower($file) . '.php');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Prints out debug information about given variable.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue