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;
}
/**
* 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();
}
}
/**