Camelized controller file names in Errors

This commit is contained in:
Leonid Mamchenkov 2011-06-15 00:14:38 +03:00
parent 4c02fa75eb
commit aeb510e521
2 changed files with 2 additions and 2 deletions

View file

@ -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 file

@ -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