Example #1
0
 /**
  * Main module function, executed right after module loading by Orion.
  * Handles route parsing and function callbacks.
  */
 public function load()
 {
     if ($this->tpl == null) {
         $this->setRenderer($this->renderer);
     }
     if ($this->template == null) {
         $this->setTemplate(Core\Context::getDefaultTemplate());
     } else {
         $this->setTemplate($this->template);
     }
     parent::load();
 }