From af93754ec99d8748677dc2cfd92137a8698a90fa Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sat, 15 Nov 2014 18:42:49 -0500 Subject: Attach events only for board controller --- app/Controller/Base.php | 14 +++++++++++++- docs/installation.markdown | 2 +- docs/update.markdown | 2 +- 3 files changed, 15 insertions(+), 3 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 @@ -101,6 +101,16 @@ abstract class Base $this->template = new Template; } + /** + * Destructor + * + * @access public + */ + public function __destruct() + { + // $this->container['logger']->addDebug(var_export($this->container['db']->getLogMessages(), true)); + } + /** * Load automatically models * @@ -151,7 +161,9 @@ abstract class Base } // Attach events - $this->attachEvents(); + if ($controller === 'board') { + $this->attachEvents(); + } } /** diff --git a/docs/installation.markdown b/docs/installation.markdown index 3f051f99..319eb271 100644 --- a/docs/installation.markdown +++ b/docs/installation.markdown @@ -28,7 +28,7 @@ From the repository (development version) You must install [composer](https://getcomposer.org/) to use this method. 1. `git clone https://github.com/fguillot/kanboard.git` -2. `composer update` +2. `composer install` 3. Go to the third step just above Note: This method will install the **current development version**, use at your own risk. diff --git a/docs/update.markdown b/docs/update.markdown index c05f8ed0..887b03b8 100644 --- a/docs/update.markdown +++ b/docs/update.markdown @@ -19,7 +19,7 @@ From the repository (development version) 1. Close your session (logout) 2. `git pull` -3. `composer update` +3. `composer install` 3. Login and check if everything is ok Note: This method will install the **current development version**, use at your own risk. -- cgit v1.2.3