Merge pull request #1028 from dereuromark/2.3-view-elements

pluginSplit for a more meaningful notice
This commit is contained in:
Mark Story 2012-12-15 06:57:19 -08:00
commit c67c4d3317

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);
}
}