/** * @see BS_Page::before_start() */ protected function before_start() { parent::before_start(); $doc = FWS_Props::get()->doc(); // set the default template if not already done $template = ''; if ($this->get_template() === null) { $classname = get_class($doc->get_module()); $prefixlen = FWS_String::strlen('TDL_Module_'); $template = FWS_String::strtolower(FWS_String::substr($classname, $prefixlen)) . '.htm'; $this->set_template($template); } }