[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: web app confog file


On 3/25/25 8:55 AM, Linus wrote:
Hello,

You can download my last Web App in the Gambas Farm named ‘gbGestionImmobilier’
Take a look a t the code you will find how to have a config file for your Web App
In my case the file is named ‘gbGestionImmobilier.ini'


Olivier Cruilles
olivier.cruilles@xxxxxxxx <mailto:olivier.cruilles@xxxxxxxx>




Le 25 mars 2025 à 08:48, gaucho <64xcode@xxxxxxxxx <mailto:64xcode@xxxxxxxxx>> a écrit :

Hi,

In desktop apps I use a json file located in the user folder, but in
web apps the users access to the app altrough a web browser.

[snip]>

Just in case you meant that you are using gb.web as opposed to gb.web.gui, you use Settings (from gb.settings) like this:
[code]
<%
Dim sDocumentRoot As String = Env["DOCUMENT_ROOT"]
Dim sConfPath As String = sDocumentRoot &/ Application.Name & ".conf"
Dim hSettings As New Settings(sConfPath)
%>
[/code]


--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----


Follow-Ups:
Re: web app confog filegaucho <64xcode@xxxxxxxxx>
References:
web app confog filegaucho <64xcode@xxxxxxxxx>
Re: web app confog fileLinus <olivier.cruilles@xxxxxxxx>