pluginSplit for a more meaningful exception message

This commit is contained in:
euromark 2012-12-15 03:32:01 +01:00
parent 6f5ff4d7dd
commit c83b454946

View file

@ -414,7 +414,9 @@ class View extends Object {
}
if (empty($options['ignoreMissing'])) {
$file = 'Elements' . DS . $name . $this->ext;
list ($plugin, $name) = pluginSplit($name, true);
$name = str_replace('/', DS, $name);
$file = $plugin . 'Elements' . DS . $name . $this->ext;
trigger_error(__d('cake_dev', 'Element Not Found: %s', $file), E_USER_NOTICE);
}
}