From c83b4549464a54605d22e9198ac9048304e175e7 Mon Sep 17 00:00:00 2001 From: euromark Date: Sat, 15 Dec 2012 03:32:01 +0100 Subject: [PATCH] pluginSplit for a more meaningful exception message --- lib/Cake/View/View.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Cake/View/View.php b/lib/Cake/View/View.php index e8bdb3064f7..3e93de61322 100644 --- a/lib/Cake/View/View.php +++ b/lib/Cake/View/View.php @@ -414,7 +414,9 @@ public function element($name, $data = array(), $options = array()) { } 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); } }