Пример #1
0
 /**
  * On construction, detect the template type
  */
 function __construct($template = false)
 {
     if (!$template instanceof Template) {
         $this->detectTemplateType();
     }
     return parent::__construct($template);
 }
Пример #2
0
 /**
  * On construction, detect the template type
  */
 function __construct($template = false)
 {
     if (!$template instanceof Template) {
         $this->detectTemplateType();
     }
     assert('\\Idno\\Core\\site()->config()->site_secret /* Site secret not set */');
     \Bonita\Main::siteSecret(\Idno\Core\site()->config()->site_secret);
     return parent::__construct($template);
 }