Permalink
Browse files

update error elements

  • Loading branch information...
1 parent 8c5953d commit deb1b17b2cf16efe831d66e566f49146efc2b1d8 @AD7six AD7six committed Sep 24, 2010
File renamed without changes.
@@ -0,0 +1,29 @@
+<?php
+/**
+ * Show checked paths
+ * @TODO for view/element/layout errors - add the subfolder
+ * @TODO no indication of plugin
+ */
+if (isset($paths)) {
+ $paths = App::path($paths);
+ echo '<br /><h3>The following paths have been checked:</h3>';
+ echo '<ul><li>' . implode($paths, '</li><li>') . '</li></ul>';
+}
+?>
+<br />
+<h3>How'd you get here:</h3>
+<?php
+/**
+ * Strip the error processing from the trace
+ */
+$trace = Debugger::trace();
+$trace = preg_replace('@.*Object::cakeError[^\n]*@s', '', $trace);
+debug($trace); // @ignore
+?>
+<h3>What files have been loaded:</h3>
+<?php
+/**
+ * Strip the error processing from the trace
+ */
+$files = get_included_files();
+debug($files); // @ignore
@@ -31,7 +31,7 @@ echo $html->docType('xhtml-trans'); ?>
</div>
<div id="lowerMenu"><?php
if (Configure::read() && !empty($plugin)) {
- echo $this->element('plugin_check');
+ echo $this->element('dev/plugin_check');
}
echo $content_for_layout;
?></div>
@@ -33,7 +33,7 @@ echo $html->docType('xhtml-trans'); ?>
</div>
<div id="lowerMenu"><?php
if (Configure::read() && !empty($plugin)) {
- echo $this->element('plugin_check');
+ echo $this->element('dev/plugin_check');
}
echo $content_for_layout;
?></div>

0 comments on commit deb1b17

Please sign in to comment.