Skip to content

Commit

Permalink
Cleanup missing view/layout errors.
Browse files Browse the repository at this point in the history
Fix formatting issues and make path listings correct.
  • Loading branch information
markstory committed Jun 18, 2014
1 parent e548dfc commit fecc687
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
9 changes: 3 additions & 6 deletions lib/Cake/View/Errors/missing_layout.ctp
Expand Up @@ -21,19 +21,16 @@
<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>' . h($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>' . h($file) . '</em>'); ?>
</p>

<p>
You should create "<?php echo h($file); ?>" in one of he following paths:
<?php echo __d('cake_dev', 'Confirm you have created the file: %s', h($file)); ?>
in one of the following paths:
</p>
<ul>
<?php
$paths = $this->_paths($this->plugin);
foreach ($paths as $path):
echo sprintf('<li>%s%s%s</li>', h($path), DS, h($file));
echo sprintf('<li>%s%s</li>', h($path), h($file));
endforeach;
?>
</ul>
Expand Down
11 changes: 3 additions & 8 deletions lib/Cake/View/Errors/missing_view.ctp
@@ -1,7 +1,5 @@
<?php
/**
*
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
Expand All @@ -21,19 +19,16 @@
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong>
<?php echo __d('cake_dev', 'The view for %1$s%2$s was not found.', '<em>' . h(Inflector::camelize($this->request->controller)) . 'Controller::</em>', '<em>' . h($this->request->action) . '()</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', h($file)); ?>
</p>

<p>
You should create "<?php echo h($file); ?>" in one of he following paths:
<?php echo __d('cake_dev', 'Confirm you have created the file: %s', h($file)); ?>
in one of the following paths:
</p>
<ul>
<?php
$paths = $this->_paths($this->plugin);
foreach ($paths as $path):
echo sprintf('<li>%s%s%s</li>', h($path), DS, h($file));
echo sprintf('<li>%s%s</li>', h($path), h($file));
endforeach;
?>
</ul>
Expand Down

0 comments on commit fecc687

Please sign in to comment.