is it possible to show the version in the header?

Hi,

i tried to show the application version number in the header but its not working.

i tried value with {version} or $this->version but its not working.

is it possible to show the actual version of the application somewhere in the page?

Thanks a lot,

mati

Re: is it possible to show the version in the header?

The version is for internal development use and not for app version number. You will have to track the version number yourself in a table/file.

Regards,
Scott.

Re: is it possible to show the version in the header?

hello Scott,

thanks for your reply.

i could just define a global variable with [version] = “1.1” and use it in the header like

Version: [version]

is that correct?

thanks for your answer,

mati

Re: is it possible to show the version in the header?

Sure, you could just create a global/session var (SC global = session var).

If you find yourself using a lot of globals, then define a parent session array such as:

$_SESSION[‘myapp’][‘version’] = ‘1.1’
$_SESSION[‘myapp’][‘build’] = ‘1002’

This is much cleaner than using global macros. It is also easier to manage the array if you need to reference the child array by number in PHP or JS.

Regards,
Scott.

New version coming soon — check out what's new in Scriptcase 9.12! New version coming soon — check out what's new in Scriptcase 9.12!