Skip to content

Commit 893d03d

Browse files
committed
improve configuration documentation
1 parent a936758 commit 893d03d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configuration/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ config := TIniFileConfig.create(
4444
'fano'
4545
);
4646
```
47-
Last parameter is name of default section to use. Read *INI file configuration* section in this document for more information.
47+
Last parameter is name of default section to use. Read [INI file configuration](#ini-file-configuration) section in this document for more information.
4848

4949
To be able to use `TJsonFileConfig` and `TIniFileConfig` class with [dependency container](/dependency-container), Fano Framework provides `TJsonFileConfigFactory` and `TIniFileConfigFactory` class which enables you to register above classes in container.
5050

@@ -123,7 +123,7 @@ var cookieMaxAge : integer;
123123
cookieMaxAge := config.getInt('cookie.maxAge');
124124
```
125125

126-
## INI file configuration
126+
## <a name="ini-file-configuration"></a>INI file configuration
127127

128128
`TIniFileConfig` is thin wrapper of Free Pascal `TIniFile`. `TIniFile` cannot read data from INI file that has no section. Your INI file must contain at least one section which serve as default section. The last parameter of `TIniFileConfig`'s constructor expect name of default section. If you use `TIniFileConfigFactory`, by default it uses `fano` as default section if not specified. You can specify default section by calling `setDefaultSection()` method as shown in following code.
129129

0 commit comments

Comments
 (0)