Skip to content
Permalink
Browse files

Fixing class name and file path on controller exception

  • Loading branch information...
jeremyharris committed Jan 7, 2016
1 parent 9fd3dd2 commit 8469d65a0e71b910c7efc06af0a7c243b3bd8312
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/Template/Error/missing_controller.ctp
@@ -14,17 +14,16 @@
*/
use Cake\Core\Plugin;
use Cake\Core\Configure;
use Cake\Utility\Inflector;
$pluginDot = empty($plugin) ? null : $plugin . '.';
$namespace = Configure::read('App.namespace');
$prefixNs = '';
$prefixPath = '';
if (!empty($prefix)) {
$prefix = Inflector::camelize($prefix);
$prefixNs = '\\' . $prefix;
$prefixPath = $prefix . DS;
$prefix = array_map('\Cake\Utility\Inflector::camelize', explode('/', $prefix));
$prefixNs = '\\' . implode('\\', $prefix);
$prefixPath = implode(DS, $prefix) . DS;
}
if (!empty($plugin)) {

0 comments on commit 8469d65

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