Skip to content
Permalink
Browse files

Throwing errors correctly now Ref #4000

Missing component threw misleading errors.
  • Loading branch information...
karmicdice committed Jul 17, 2014
1 parent e1d8714 commit 867e8014da34c512307448830c7b7e245cf9487c
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Template/Error/missing_component.ctp
@@ -24,11 +24,11 @@ $pluginDot = empty($plugin) ? null : $plugin . '.';
</p>
<p class="error">
<strong>Error: </strong>
<?= sprintf('Create the class <em>%s</em> below in file: %s', h($class), (empty($plugin) ? APP_DIR : Plugin::path($plugin)) . DS . 'Controller' . DS . 'Component' . DS . h($class) . '.php'); ?>
<?= sprintf('Create the class <em>%sComponent</em> below in file: %s', h($class), (empty($plugin) ? APP_DIR : Plugin::path($plugin)) . DS . 'Controller' . DS . 'Component' . DS . h($class) . 'Component.php'); ?>
</p>
<pre>
&lt;?php
class <?= h($class); ?> extends Component {
class <?= h($class).'Component'; ?> extends Component {

}
</pre>

0 comments on commit 867e801

Please sign in to comment.
You can’t perform that action at this time.