From 169832606c98c5ba1c96a84b15d9806461220096 Mon Sep 17 00:00:00 2001 From: nate Date: Tue, 6 Mar 2007 20:56:45 +0000 Subject: [PATCH] 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 --- cake/libs/configure.php | 4 +++- cake/libs/view/helper.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cake/libs/configure.php b/cake/libs/configure.php index f48ca9895..347708850 100644 --- a/cake/libs/configure.php +++ b/cake/libs/configure.php @@ -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); diff --git a/cake/libs/view/helper.php b/cake/libs/view/helper.php index 82a423c25..6ffd4e24c 100644 --- a/cake/libs/view/helper.php +++ b/cake/libs/view/helper.php @@ -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); } /**