• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

GetProfileSections

Guest
Sep 13, 2006 Sep 13, 2006

Copy link to clipboard

Copied

I have looked at little on the new cf tags GetProfileSections and GetProfileString.

The more I have looked at the tags the more confused I have been.
What is the purpose of these tags?

I was thinking of create a setup.ini file containing all the setup features of the application. Including database parameters, file locations etc.

But then I found out that the tags must have an absolute path to the inifile. This means that I have to hardcode the location of the inifile in my application. I think that this takes the sweetness away of using an inifile as a setup file.

What do you read from ini files?

Best regards,
Morten Kruse
TOPICS
Advanced techniques

Views

186

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Deleted User
Sep 13, 2006 Sep 13, 2006
I solved the problem in this way:

<cfset cur_dir = GetDirectoryFromPAth(GetTemplatePath())>
<cfset inifil = GetProfileSections("#cur_dir#\test.ini")>

Votes

Translate

Translate
Guest
Sep 13, 2006 Sep 13, 2006

Copy link to clipboard

Copied

LATEST
I solved the problem in this way:

<cfset cur_dir = GetDirectoryFromPAth(GetTemplatePath())>
<cfset inifil = GetProfileSections("#cur_dir#\test.ini")>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation