diff options
Diffstat (limited to 'app/Controller/Base.php')
-rw-r--r-- | app/Controller/Base.php | 14 |
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(); + } } /** |