2005-10-09 01:56:21 +00:00
|
|
|
<?php
|
|
|
|
/* SVN FILE: $Id$ */
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* PHP versions 4 and 5
|
|
|
|
*
|
|
|
|
* CakePHP : Rapid Development Framework <http://www.cakephp.org/>
|
|
|
|
* Copyright (c) 2005, CakePHP Authors/Developers
|
|
|
|
*
|
|
|
|
* Author(s): Michal Tatarynowicz aka Pies <tatarynowicz@gmail.com>
|
|
|
|
* Larry E. Masters aka PhpNut <nut@phpnut.com>
|
|
|
|
* Kamil Dzielinski aka Brego <brego.dk@gmail.com>
|
|
|
|
*
|
|
|
|
* Licensed under The MIT License
|
|
|
|
* Redistributions of files must retain the above copyright notice.
|
|
|
|
*
|
|
|
|
* @filesource
|
|
|
|
* @author CakePHP Authors/Developers
|
|
|
|
* @copyright Copyright (c) 2005, CakePHP Authors/Developers
|
|
|
|
* @link https://trac.cakephp.org/wiki/Authors Authors/Developers
|
|
|
|
* @package cake
|
|
|
|
* @subpackage cake.cake.libs.view.templates.errors
|
|
|
|
* @since CakePHP v 0.10.0.1076
|
|
|
|
* @version $Revision$
|
|
|
|
* @modifiedby $LastChangedBy$
|
|
|
|
* @lastmodified $Date$
|
|
|
|
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
|
|
|
|
*/
|
|
|
|
?>
|
2005-06-19 06:45:55 +00:00
|
|
|
<h1>Missing controller</h1>
|
2005-09-17 12:37:05 +00:00
|
|
|
<?php $missing = $this->controller->missingController; ?>
|
|
|
|
<p class="error">You are seeing this error because controller <em><?php echo $missing;?></em>
|
2005-06-19 06:45:55 +00:00
|
|
|
could not be found.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<span class="notice"><strong>Notice:</strong> this error is being rendered by the <code>app/views/errors/missing_controller.thtml</code>
|
|
|
|
view file, a user-customizable error page for handling invalid controller dispatches.</span>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
2005-09-17 12:37:05 +00:00
|
|
|
<strong>Fatal</strong>: Unable to load controller <em><?php echo $missing;?></em>
|
2005-06-19 06:45:55 +00:00
|
|
|
</p>
|
2005-09-17 12:37:05 +00:00
|
|
|
<p>
|
|
|
|
<strong>Fatal</strong>: Create Class:
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<?php echo "<pre><?php\n\nclass " . $missing ." extends AppController {\n}\n\n?></pre>"; ?>
|
|
|
|
in file : <?php echo "app".DS."controllers".DS.Inflector::underscore($missing).".php"; ?>
|
|
|
|
</p>
|
|
|
|
<?php if (DEBUG>1):?>
|
2005-06-19 06:45:55 +00:00
|
|
|
<h2>Controller dump:</h2>
|
|
|
|
<pre>
|
2005-09-17 12:37:05 +00:00
|
|
|
<?php
|
2005-06-23 00:27:37 +00:00
|
|
|
unset($this->db);
|
|
|
|
print_r($this);
|
|
|
|
?>
|
2005-06-19 06:45:55 +00:00
|
|
|
</pre>
|
2005-09-17 12:37:05 +00:00
|
|
|
<?php endif?>
|