-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding the default error pages to be overloaded
- Loading branch information
1 parent
12c7c54
commit ceaa29c
Showing
16 changed files
with
571 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
/** | ||
* | ||
* PHP 5 | ||
* | ||
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* | ||
* Licensed under The MIT License | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* @link http://cakephp.org CakePHP(tm) Project | ||
* @package Cake.View.Errors | ||
* @since CakePHP(tm) v 0.10.0.1076 | ||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) | ||
*/ | ||
?> | ||
<h2><?php echo __d('cake_dev', 'Missing Method in %s', $controller); ?></h2> <p class="error"> | ||
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong> | ||
<?php echo __d('cake_dev', 'The action %1$s is not defined in controller %2$s', '<em>' . $action . '</em>', '<em>' . $controller . '</em>'); ?> | ||
</p> | ||
<p class="error"> | ||
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong> | ||
<?php echo __d('cake_dev', 'Create %1$s%2$s in file: %3$s.', '<em>' . $controller . '::</em>', '<em>' . $action . '()</em>', APP_DIR . DS . 'Controller' . DS . $controller . '.php'); ?> | ||
</p> | ||
<pre> | ||
<?php | ||
class <?php echo $controller;?> extends AppController { | ||
|
||
<strong> | ||
public function <?php echo $action;?>() { | ||
|
||
} | ||
</strong> | ||
} | ||
</pre> | ||
<p class="notice"> | ||
<strong><?php echo __d('cake_dev', 'Notice'); ?>: </strong> | ||
<?php echo __d('cake_dev', 'If you want to customize this error message, create %s', APP_DIR . DS . 'View' . DS . 'Errors' . DS . 'missing_action.ctp'); ?> | ||
</p> | ||
<?php echo $this->element('exception_stack_trace'); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
/** | ||
* | ||
* PHP 5 | ||
* | ||
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* | ||
* Licensed under The MIT License | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* @link http://cakephp.org CakePHP(tm) Project | ||
* @package Cake.View.Errors | ||
* @since CakePHP(tm) v 1.3 | ||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) | ||
*/ | ||
$pluginDot = empty($plugin) ? null : $plugin . '.'; | ||
?> | ||
<h2><?php echo __d('cake_dev', 'Missing Behavior'); ?></h2> | ||
<p class="error"> | ||
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong> | ||
<?php echo __d('cake_dev', '%s could not be found.', '<em>' . $pluginDot . $class . '</em>'); ?> | ||
</p> | ||
<p class="error"> | ||
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong> | ||
<?php echo __d('cake_dev', 'Create the class %s below in file: %s', '<em>' . $class . '</em>', (empty($plugin) ? APP_DIR . DS : CakePlugin::path($plugin)) . 'Model' . DS . 'Behavior' . DS . $class . '.php'); ?> | ||
</p> | ||
<pre> | ||
<?php | ||
class <?php echo $class; ?> extends ModelBehavior { | ||
|
||
} | ||
</pre> | ||
<p class="notice"> | ||
<strong><?php echo __d('cake_dev', 'Notice'); ?>: </strong> | ||
<?php echo __d('cake_dev', 'If you want to customize this error message, create %s', APP_DIR . DS . 'View' . DS . 'Errors' . DS . 'missing_behavior.ctp'); ?> | ||
</p> | ||
|
||
<?php echo $this->element('exception_stack_trace'); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
/** | ||
* | ||
* PHP 5 | ||
* | ||
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* | ||
* Licensed under The MIT License | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* @link http://cakephp.org CakePHP(tm) Project | ||
* @package Cake.View.Errors | ||
* @since CakePHP(tm) v 0.10.0.1076 | ||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) | ||
*/ | ||
$pluginDot = empty($plugin) ? null : $plugin . '.'; | ||
?> | ||
<h2><?php echo __d('cake_dev', 'Missing Component'); ?></h2> | ||
<p class="error"> | ||
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong> | ||
<?php echo __d('cake_dev', '%s could not be found.', '<em>' . $pluginDot . $class . '</em>'); ?> | ||
</p> | ||
<p class="error"> | ||
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong> | ||
<?php echo __d('cake_dev', 'Create the class %s below in file: %s', '<em>' . $class . '</em>', (empty($plugin) ? APP_DIR . DS : CakePlugin::path($plugin)) . 'Controller' . DS . 'Component' . DS . $class . '.php'); ?> | ||
</p> | ||
<pre> | ||
<?php | ||
class <?php echo $class; ?> extends Component { | ||
|
||
} | ||
</pre> | ||
<p class="notice"> | ||
<strong><?php echo __d('cake_dev', 'Notice'); ?>: </strong> | ||
<?php echo __d('cake_dev', 'If you want to customize this error message, create %s', APP_DIR . DS . 'View' . DS . 'Errors' . DS . 'missing_component.ctp'); ?> | ||
</p> | ||
|
||
<?php echo $this->element('exception_stack_trace'); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
/** | ||
* | ||
* PHP 5 | ||
* | ||
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* | ||
* Licensed under The MIT License | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* @link http://cakephp.org CakePHP(tm) Project | ||
* @package Cake.View.Errors | ||
* @since CakePHP(tm) v 0.10.0.1076 | ||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) | ||
*/ | ||
?> | ||
<h2><?php echo __d('cake_dev', 'Missing Database Connection'); ?></h2> | ||
<p class="error"> | ||
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong> | ||
<?php echo __d('cake_dev', '%s requires a database connection', $class); ?> | ||
</p> | ||
<p class="error"> | ||
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong> | ||
<?php echo __d('cake_dev', 'Confirm you have created the file : %s.', APP_DIR . DS . 'Config' . DS . 'database.php'); ?> | ||
</p> | ||
<p class="notice"> | ||
<strong><?php echo __d('cake_dev', 'Notice'); ?>: </strong> | ||
<?php echo __d('cake_dev', 'If you want to customize this error message, create %s.', APP_DIR . DS . 'View' . DS . 'Errors' . DS . basename(__FILE__)); ?> | ||
</p> | ||
|
||
<?php | ||
echo $this->element('exception_stack_trace'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
/** | ||
* | ||
* PHP 5 | ||
* | ||
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* | ||
* Licensed under The MIT License | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* @link http://cakephp.org CakePHP(tm) Project | ||
* @package Cake.View.Errors | ||
* @since CakePHP(tm) v 0.10.0.1076 | ||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) | ||
*/ | ||
$pluginDot = empty($plugin) ? null : $plugin . '.'; | ||
?> | ||
<h2><?php echo __d('cake_dev', 'Missing Controller'); ?></h2> | ||
<p class="error"> | ||
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong> | ||
<?php echo __d('cake_dev', '%s could not be found.', '<em>' . $pluginDot . $class . '</em>'); ?> | ||
</p> | ||
<p class="error"> | ||
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong> | ||
<?php echo __d('cake_dev', 'Create the class %s below in file: %s', '<em>' . $class . '</em>', (empty($plugin) ? APP_DIR . DS : CakePlugin::path($plugin)) . 'Controller' . DS . $class . '.php'); ?> | ||
</p> | ||
<pre> | ||
<?php | ||
class <?php echo $class . ' extends ' . $plugin; ?>AppController { | ||
|
||
} | ||
</pre> | ||
<p class="notice"> | ||
<strong><?php echo __d('cake_dev', 'Notice'); ?>: </strong> | ||
<?php echo __d('cake_dev', 'If you want to customize this error message, create %s', APP_DIR . DS . 'View' . DS . 'Errors' . DS . 'missing_controller.ctp'); ?> | ||
</p> | ||
|
||
<?php echo $this->element('exception_stack_trace'); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
/** | ||
* | ||
* PHP 5 | ||
* | ||
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* | ||
* Licensed under The MIT License | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* @link http://cakephp.org CakePHP(tm) Project | ||
* @package Cake.View.Errors | ||
* @since CakePHP(tm) v 0.10.0.1076 | ||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) | ||
*/ | ||
?> | ||
<h2><?php echo __d('cake_dev', 'Missing Database Connection'); ?></h2> | ||
<p class="error"> | ||
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong> | ||
<?php echo __d('cake_dev', 'Scaffold requires a database connection'); ?> | ||
</p> | ||
<p class="error"> | ||
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong> | ||
<?php echo __d('cake_dev', 'Confirm you have created the file: %s', APP_DIR . DS . 'Config' . DS . 'database.php'); ?> | ||
</p> | ||
<p class="notice"> | ||
<strong><?php echo __d('cake_dev', 'Notice'); ?>: </strong> | ||
<?php echo __d('cake_dev', 'If you want to customize this error message, create %s', APP_DIR . DS . 'View' . DS . 'Errors' . DS . 'missing_database.ctp'); ?> | ||
</p> | ||
|
||
<?php echo $this->element('exception_stack_trace'); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
/** | ||
* | ||
* PHP 5 | ||
* | ||
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* | ||
* Licensed under The MIT License | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* @link http://cakephp.org CakePHP(tm) Project | ||
* @package Cake.View.Errors | ||
* @since CakePHP(tm) v 2.0 | ||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) | ||
*/ | ||
$pluginDot = empty($plugin) ? null : $plugin . '.'; | ||
?> | ||
<h2><?php echo __d('cake_dev', 'Missing Datasource'); ?></h2> | ||
<p class="error"> | ||
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong> | ||
<?php echo __d('cake_dev', 'Datasource class %s could not be found.', '<em>' . $pluginDot . $class . '</em>'); ?> | ||
</p> | ||
<p class="notice"> | ||
<strong><?php echo __d('cake_dev', 'Notice'); ?>: </strong> | ||
<?php echo __d('cake_dev', 'If you want to customize this error message, create %s', APP_DIR . DS . 'View' . DS . 'Errors' . DS . 'missing_datasource.ctp'); ?> | ||
</p> | ||
|
||
<?php echo $this->element('exception_stack_trace'); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
/** | ||
* | ||
* PHP 5 | ||
* | ||
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* | ||
* Licensed under The MIT License | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* @link http://cakephp.org CakePHP(tm) Project | ||
* @package Cake.View.Errors | ||
* @since CakePHP(tm) v 2.0 | ||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) | ||
*/ | ||
?> | ||
<h2><?php echo __d('cake_dev', 'Missing Datasource Configuration'); ?></h2> | ||
<p class="error"> | ||
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong> | ||
<?php echo __d('cake_dev', 'The datasource configuration %1$s was not found in database.php.', '<em>' . $config . '</em>'); ?> | ||
</p> | ||
<p class="notice"> | ||
<strong><?php echo __d('cake_dev', 'Notice'); ?>: </strong> | ||
<?php echo __d('cake_dev', 'If you want to customize this error message, create %s', APP_DIR . DS . 'View' . DS . 'Errors' . DS . 'missing_datasource_config.ctp'); ?> | ||
</p> | ||
|
||
<?php echo $this->element('exception_stack_trace'); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
/** | ||
* | ||
* PHP 5 | ||
* | ||
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* | ||
* Licensed under The MIT License | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* @link http://cakephp.org CakePHP(tm) Project | ||
* @package Cake.View.Errors | ||
* @since CakePHP(tm) v 0.10.0.1076 | ||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) | ||
*/ | ||
$pluginDot = empty($plugin) ? null : $plugin . '.'; | ||
?> | ||
<h2><?php echo __d('cake_dev', 'Missing Helper'); ?></h2> | ||
<p class="error"> | ||
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong> | ||
<?php echo __d('cake_dev', '%s could not be found.', '<em>' . $pluginDot . $class . '</em>'); ?> | ||
</p> | ||
<p class="error"> | ||
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong> | ||
<?php echo __d('cake_dev', 'Create the class %s below in file: %s', '<em>' . $class . '</em>', (empty($plugin) ? APP_DIR . DS : CakePlugin::path($plugin)) . 'View' . DS . 'Helper' . DS . $class . '.php'); ?> | ||
</p> | ||
<pre> | ||
<?php | ||
class <?php echo $class; ?> extends AppHelper { | ||
|
||
} | ||
</pre> | ||
<p class="notice"> | ||
<strong><?php echo __d('cake_dev', 'Notice'); ?>: </strong> | ||
<?php echo __d('cake_dev', 'If you want to customize this error message, create %s', APP_DIR . DS . 'View' . DS . 'Errors' . DS . 'missing_helper.ctp'); ?> | ||
</p> | ||
|
||
<?php echo $this->element('exception_stack_trace'); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
/** | ||
* | ||
* PHP 5 | ||
* | ||
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* | ||
* Licensed under The MIT License | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* @link http://cakephp.org CakePHP(tm) Project | ||
* @package Cake.View.Errors | ||
* @since CakePHP(tm) v 0.10.0.1076 | ||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) | ||
*/ | ||
?> | ||
<h2><?php echo __d('cake_dev', 'Missing Layout'); ?></h2> | ||
<p class="error"> | ||
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong> | ||
<?php echo __d('cake_dev', 'The layout file %s can not be found or does not exist.', '<em>' . $file . '</em>'); ?> | ||
</p> | ||
<p class="error"> | ||
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong> | ||
<?php echo __d('cake_dev', 'Confirm you have created the file: %s', '<em>' . $file . '</em>'); ?> | ||
</p> | ||
<p class="notice"> | ||
<strong><?php echo __d('cake_dev', 'Notice'); ?>: </strong> | ||
<?php echo __d('cake_dev', 'If you want to customize this error message, create %s', APP_DIR . DS . 'View' . DS . 'Errors' . DS . 'missing_layout.ctp'); ?> | ||
</p> | ||
|
||
<?php echo $this->element('exception_stack_trace'); ?> |
Oops, something went wrong.