Permalink
Browse files

Camelized controller file names in Errors

  • Loading branch information...
1 parent 4c02fa7 commit aeb510e5213dd66d0007c33806f2b2d28098d3c0 @mamchenkov mamchenkov committed Jun 14, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/Cake/View/Errors/missing_action.ctp
  2. +1 −1 lib/Cake/View/Errors/missing_controller.ctp
View
2 lib/Cake/View/Errors/missing_action.ctp
@@ -22,7 +22,7 @@
</p>
<p class="error">
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong>
- <?php echo __d('cake_dev', 'Create %1$s%2$s in file: %3$s.', '<em>' . $controller . '::</em>', '<em>' . $action . '()</em>', APP_DIR . DS . 'Controller' . DS . Inflector::underscore($controller) . '.php'); ?>
+ <?php echo __d('cake_dev', 'Create %1$s%2$s in file: %3$s.', '<em>' . $controller . '::</em>', '<em>' . $action . '()</em>', APP_DIR . DS . 'Controller' . DS . Inflector::camelize($controller) . '.php'); ?>
</p>
<pre>
&lt;?php
View
2 lib/Cake/View/Errors/missing_controller.ctp
@@ -23,7 +23,7 @@
</p>
<p class="error">
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong>
- <?php echo __d('cake_dev', 'Create the class %s below in file: %s', '<em>' . $controller . '</em>', APP_DIR . DS . 'Controller' . DS . Inflector::underscore($controller) . '.php'); ?>
+ <?php echo __d('cake_dev', 'Create the class %s below in file: %s', '<em>' . $controller . '</em>', APP_DIR . DS . 'Controller' . DS . Inflector::camelize($controller) . '.php'); ?>
</p>
<pre>
&lt;?php

0 comments on commit aeb510e

Please sign in to comment.