Attach events only for board controller

This commit is contained in:
Frédéric Guillot
2014-11-15 18:42:49 -05:00
parent 46f19336c0
commit af93754ec9
3 changed files with 15 additions and 3 deletions

View File

@@ -101,6 +101,16 @@ abstract class Base
$this->template = new Template; $this->template = new Template;
} }
/**
* Destructor
*
* @access public
*/
public function __destruct()
{
// $this->container['logger']->addDebug(var_export($this->container['db']->getLogMessages(), true));
}
/** /**
* Load automatically models * Load automatically models
* *
@@ -151,7 +161,9 @@ abstract class Base
} }
// Attach events // Attach events
$this->attachEvents(); if ($controller === 'board') {
$this->attachEvents();
}
} }
/** /**

View File

@@ -28,7 +28,7 @@ From the repository (development version)
You must install [composer](https://getcomposer.org/) to use this method. You must install [composer](https://getcomposer.org/) to use this method.
1. `git clone https://github.com/fguillot/kanboard.git` 1. `git clone https://github.com/fguillot/kanboard.git`
2. `composer update` 2. `composer install`
3. Go to the third step just above 3. Go to the third step just above
Note: This method will install the **current development version**, use at your own risk. Note: This method will install the **current development version**, use at your own risk.

View File

@@ -19,7 +19,7 @@ From the repository (development version)
1. Close your session (logout) 1. Close your session (logout)
2. `git pull` 2. `git pull`
3. `composer update` 3. `composer install`
3. Login and check if everything is ok 3. Login and check if everything is ok
Note: This method will install the **current development version**, use at your own risk. Note: This method will install the **current development version**, use at your own risk.