How can I tell which version of Appgini I used to generate a web app?
TD
App version
Re: App version
I. Javascript
I.1 In Browser
In new versions there is a
I.2 In Code
Open
---
II. PHP
II.1 At Runtime
In new versions there is a PHP constant
You can use the constant in any of your PHP files, for example output the version in the browser like this:
II.2 In Code
You can also check code-comments in generated PHP cocde, for example open any of your
Or simply search all your project files for the string "were generated by AppGini".
III. Project file (*.axp)
Open your project file (which actually is XML) in your text-editor (not in AppGini itself) and search for
---
PS: I know BigProf has inserted version information a while ago. I don't know for older versions. If you are using an older version, probably a 5.x version, you could try searching your files for
Does anyone know for older versions?
Hope this helps.
I.1 In Browser
In new versions there is a
version
-property which you can evaluate in javascript, for example in console prompt of your browser's developer tools:Code: Select all
AppGini.version
I.2 In Code
Open
common.js
. In new versions there should be a version-initialization around line 3:
Code: Select all
AppGini.version = 22.14;
II. PHP
II.1 At Runtime
In new versions there is a PHP constant
APP_VERSION
, defined in definitions.php
:
Code: Select all
@define('APP_VERSION', '22.14');
Code: Select all
<!-- file: hooks/header-extras.php -->
<script>
modal_window({
title: 'AppGini Version',
message: 'v.<?= APP_VERSION ?>'
});
</script>
II.2 In Code
You can also check code-comments in generated PHP cocde, for example open any of your
TABLENAME_dml.php
files and see the comments in the first couple of lines:Code: Select all
<?php
// ...
// This script and data application were generated by AppGini 22.14
// ...
III. Project file (*.axp)
Open your project file (which actually is XML) in your text-editor (not in AppGini itself) and search for
<version>
---
PS: I know BigProf has inserted version information a while ago. I don't know for older versions. If you are using an older version, probably a 5.x version, you could try searching your files for
5.
and check if there are any code comments, generated by that older version. I have just opened an older project and found code comments like this one which means at least since 5.72 there should be code such comments:
Code: Select all
// This script and data application were generated by AppGini 5.72
Hope this helps.
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 25.10 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 25.10 + all AppGini Helper tools
Re: App version
Wow, thank you Jan !