Attach events only for board controller
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user