From 1e3fc3def6918568f4e36026c46feadbe3c24e7c Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 6 Mar 2011 18:24:42 +0100 Subject: print_a funktion zum debugging hinzugefügt damit sie von überall benutzbar ist && evaluate in Filter zu großen Teilen fertig, ebenso die Auswertung, welche BootMenuID zurückgegeben werden soll --- application/Bootstrap.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'application/Bootstrap.php') diff --git a/application/Bootstrap.php b/application/Bootstrap.php index 6ac8a0e..a836253 100644 --- a/application/Bootstrap.php +++ b/application/Bootstrap.php @@ -8,4 +8,24 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap $auth->setStorage(new Zend_Auth_Storage_Session('auth')); } } +function print_a(){ + $numargs = func_num_args(); + if($numargs>1){ + $out = ''; + ob_start(); + echo "
"; + for($a=0;$a<$numargs;$a++) + print_a(func_get_arg($a)); + echo "
"; + $out .= ob_get_contents(); + ob_end_clean(); + echo $out; + }else{ + echo "
";
+            $a = func_get_arg(0);
+            $a = (is_bool($a))?(($a)?'true':'false'):$a;
+            print_r($a);
+        echo "
"; + } +} -- cgit v1.2.3-55-g7522