1

I would like to get the installation-date of my joomla-installation and/or of any component by writing a new method in a model of my component.

How could I solve this?

1 Answer 1

1

On Linux the best you can do is work out the last modified time of a certain file by using filetime (http://php.net/filemtime). So to work out the Joomla installation date you could run filetime on a file that is not likely to have been edited /components/index.html.

You could use the same principle for extensions by doing :

filetime('/components/com_foo/index.html')

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.