Beispiel #1
0
 /**
  * Constructor.
  *
  * @param KConfig $config An optional KConfig object with configuration options.
  */
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     if ($config->request->getFormat() == 'html' && !$config->request->isAjax()) {
         $this->registerCallback('after.get', array($this, 'includeMedia'));
         $this->registerCallback('after.get', array($this, 'setPageTitle'));
         set_exception_handler(array($this, 'exception'));
     }
 }