Changed error methods, and a typo in one error file.

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@277 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
brego 2005-06-23 20:45:22 +00:00
parent d9a7885d0f
commit 975e0b3755
2 changed files with 2 additions and 5 deletions

View file

@ -1,6 +1,6 @@
<h1>Missing action</h1> <h1>Missing action</h1>
<p class="error">You are seeing this error because the action <em><?=$this->missing_action;?></em> <p class="error">You are seeing this error because the action <em><?=$this->missingAction;?></em>
is not defined in controller <em><?=Inflector::camelize($this->name);?></em> is not defined in controller <em><?=Inflector::camelize($this->name);?></em>
</p> </p>
@ -12,7 +12,7 @@ view file, a user-customizable error page for handling invalid action dispatches
<p> <p>
<strong>Error</strong>: Unable to execute action <em><?=$this->missing_action;?></em> on <strong>Error</strong>: Unable to execute action <em><?=$this->missingAction;?></em> on
<em><?=Inflector::camelize($this->name);?></em> <em><?=Inflector::camelize($this->name);?></em>
</p> </p>

View file

@ -151,21 +151,18 @@ class Controller extends Template
function missingController() function missingController()
{ {
$this->autoRender = false;
//We are simulating action call below, this is not a filename! //We are simulating action call below, this is not a filename!
$this->render('../errors/missingController'); $this->render('../errors/missingController');
} }
function missingAction() function missingAction()
{ {
$this->autoRender = false;
//We are simulating action call below, this is not a filename! //We are simulating action call below, this is not a filename!
$this->render('../errors/missingAction'); $this->render('../errors/missingAction');
} }
function missingView() function missingView()
{ {
$this->autoRender = false;
//We are simulating action call below, this is not a filename! //We are simulating action call below, this is not a filename!
$this->render('../errors/missingView'); $this->render('../errors/missingView');
} }