2005-10-09 01:56:21 +00:00
|
|
|
<?php
|
|
|
|
/* SVN FILE: $Id$ */
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2005-12-27 03:33:44 +00:00
|
|
|
*
|
2005-10-09 01:56:21 +00:00
|
|
|
*
|
|
|
|
*
|
|
|
|
* PHP versions 4 and 5
|
|
|
|
*
|
|
|
|
* CakePHP : Rapid Development Framework <http://www.cakephp.org/>
|
2005-12-27 03:33:44 +00:00
|
|
|
* Copyright (c) 2005, Cake Software Foundation, Inc.
|
2005-12-23 21:57:26 +00:00
|
|
|
* 1785 E. Sahara Avenue, Suite 490-204
|
|
|
|
* Las Vegas, Nevada 89104
|
2005-10-09 01:56:21 +00:00
|
|
|
*
|
2005-12-23 21:57:26 +00:00
|
|
|
* Licensed under The MIT License
|
|
|
|
* Redistributions of files must retain the above copyright notice.
|
2005-10-09 01:56:21 +00:00
|
|
|
*
|
2005-12-27 03:33:44 +00:00
|
|
|
* @filesource
|
2005-12-23 21:57:26 +00:00
|
|
|
* @copyright Copyright (c) 2005, Cake Software Foundation, Inc.
|
|
|
|
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
|
2005-10-09 01:56:21 +00:00
|
|
|
* @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-09-17 12:37:05 +00:00
|
|
|
<?php $controller = Inflector::camelize($this->name)."Controller"; ?>
|
2005-06-19 06:45:55 +00:00
|
|
|
|
2005-09-17 12:37:05 +00:00
|
|
|
<h1>Missing Method in <?php echo $controller;?></h1>
|
|
|
|
|
2005-12-27 03:33:44 +00:00
|
|
|
<p class="error">You are seeing this error because the action <em><?php echo $this->controller->missingAction;?></em>
|
2005-09-17 12:37:05 +00:00
|
|
|
is not defined in controller <em><?php echo $controller;?></em>
|
2005-12-27 03:33:44 +00:00
|
|
|
</p>
|
2005-06-19 06:45:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<span class="notice"><strong>Notice:</strong> this error is being rendered by the <code>app/views/errors/missing_action.thtml</code>
|
|
|
|
view file, a user-customizable error page for handling invalid action dispatches.</span>
|
|
|
|
</p>
|
|
|
|
|
2005-09-17 12:37:05 +00:00
|
|
|
<p>
|
2005-12-27 03:33:44 +00:00
|
|
|
<strong>Fatal</strong>: Create Method:
|
2005-09-17 12:37:05 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<?php echo "<pre><?php\n\nclass " . $controller ." extends AppController {\n
|
|
|
|
function ".$this->controller->missingAction."()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}\n?></pre>"; ?>
|
|
|
|
in file : <?php echo "app".DS."controllers".DS.Inflector::underscore($controller).".php"; ?>
|
|
|
|
</p>
|
2005-06-19 06:45:55 +00:00
|
|
|
|
|
|
|
<p>
|
2005-09-17 12:37:05 +00:00
|
|
|
<strong>Error</strong>: Unable to execute action <em><?php echo $this->controller->missingAction;?></em> in
|
|
|
|
<em><?php echo $controller;?></em>
|
2005-06-19 06:45:55 +00:00
|
|
|
</p>
|
|
|
|
|
2005-09-17 12:37:05 +00:00
|
|
|
<?php if (DEBUG>1):?>
|
2005-06-19 06:45:55 +00:00
|
|
|
<h2>Controller dump:</h2>
|
|
|
|
<pre>
|
2005-12-27 03:33:44 +00:00
|
|
|
<?php
|
2005-06-23 00:27:37 +00:00
|
|
|
unset($this->db);
|
2005-12-27 03:33:44 +00:00
|
|
|
print_r($this);
|
2005-06-23 00:27:37 +00:00
|
|
|
?>
|
2005-06-19 06:45:55 +00:00
|
|
|
</pre>
|
2005-12-27 03:33:44 +00:00
|
|
|
<?php endif;?>
|