Adding and updating core error messages

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4595 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2007-03-06 20:56:45 +00:00
parent 06eea06980
commit 169832606c
2 changed files with 4 additions and 2 deletions

View file

@ -437,7 +437,9 @@ class Configure extends Object {
$componentPaths = null;
$behaviorPaths = null;
if ($boot) {
require APP_PATH . 'config' . DS . 'bootstrap.php';
if (!include(APP_PATH . 'config' . DS . 'bootstrap.php')) {
trigger_error("Can't find application bootstrap file. Please create " . CONFIGS . "bootstrap.php, and make sure it is readable by PHP.", E_USER_ERROR);
}
}
$_this->__buildModelPaths($modelPaths);
$_this->__buildViewPaths($viewPaths);

View file

@ -145,7 +145,7 @@ class Helper extends Overloadable {
function get__($name) {}
function set__($name, $value) {}
function call__($method, $params) {
trigger_error(sprintf(__('Method %1$s::%2$s does not exist', true), get_class($this), $method), E_USER_ERROR);
trigger_error(sprintf(__('Method %1$s::%2$s does not exist', true), get_class($this), $method), E_USER_WARNING);
}
/**