From 0ad68f4d6a8f57998fc8145dd3789971148b3ad3 Mon Sep 17 00:00:00 2001 From: abijah Date: Sun, 6 Sep 2009 15:32:41 +0000 Subject: [PATCH] Added util function to allow us to capture client side logging, and utilize it in the invoice view to find out why the app is not working on site. Also, since everything depends so heavily on jQuery, added an internal error if jQuery fails to load. git-svn-id: file:///svn-source/pmgr/branches/pre_0.1_work_20090819@840 97e9348a-65ac-dc4b-aefc-98561f571b83 --- site/controllers/util_controller.php | 11 +++++ site/views/layouts/default.ctp | 12 ++++++ site/views/leases/invoice.ctp | 61 ++++++++++++++++++---------- 3 files changed, 63 insertions(+), 21 deletions(-) diff --git a/site/controllers/util_controller.php b/site/controllers/util_controller.php index 03aa2a4..3a4ea43 100644 --- a/site/controllers/util_controller.php +++ b/site/controllers/util_controller.php @@ -62,4 +62,15 @@ class UtilController extends AppController { function rebuild_sandbox() { $this->rebuild_box('sand'); } function rebuild_devbox() { $this->rebuild_box('dev'); } + + /************************************************************************** + ************************************************************************** + ************************************************************************** + * function: logmsg + * - action to allow posting log message data + */ + + function logmsg() { + } + } diff --git a/site/views/layouts/default.ctp b/site/views/layouts/default.ctp index f849b13..3b03b0c 100644 --- a/site/views/layouts/default.ctp +++ b/site/views/layouts/default.ctp @@ -86,6 +86,18 @@ echo $javascript->link('pmgr') . "\n"; echo $scripts_for_layout . "\n"; ?> + + params['action'] !== 'INTERNAL_ERROR'): ?> + + + diff --git a/site/views/leases/invoice.ctp b/site/views/leases/invoice.ctp index de740e9..99d937b 100644 --- a/site/views/leases/invoice.ctp +++ b/site/views/leases/invoice.ctp @@ -24,10 +24,22 @@ Configure::write('debug', '0'); ?>