public static function init($config_file) { parent::init($config_file); self::$instance->templatePath = realpath(self::$instance->templatePath); self::register(self::$instance); //var_dump(self::$instance); }
public static function init($file) { parent::init($file); $obj = json_decode(json_encode(self::$instance), true); self::$manuals = new \stdClass(); self::convertToManual($obj, null); //echo json_encode(self::$manuals, JSON_PRETTY_PRINT); self::register(self::$manuals); }