summaryrefslogtreecommitdiff
path: root/app/Controller
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-11-15 18:42:49 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-11-15 18:42:49 -0500
commitaf93754ec99d8748677dc2cfd92137a8698a90fa (patch)
treed32801def85dcc95407a015bf5f7dcc236ff1f3f /app/Controller
parent46f19336c0208797d3c47685b8b5d7d0c74296e0 (diff)
Attach events only for board controller
Diffstat (limited to 'app/Controller')
-rw-r--r--app/Controller/Base.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/app/Controller/Base.php b/app/Controller/Base.php
index 06e35e03..b0252ecb 100644
--- a/app/Controller/Base.php
+++ b/app/Controller/Base.php
@@ -102,6 +102,16 @@ abstract class Base
}
/**
+ * Destructor
+ *
+ * @access public
+ */
+ public function __destruct()
+ {
+ // $this->container['logger']->addDebug(var_export($this->container['db']->getLogMessages(), true));
+ }
+
+ /**
* Load automatically models
*
* @access public
@@ -151,7 +161,9 @@ abstract class Base
}
// Attach events
- $this->attachEvents();
+ if ($controller === 'board') {
+ $this->attachEvents();
+ }
}
/**