| Tuesday, 24 March 2009 | |||||||
The current tip comes from the great man himself, Andrew Eddie from the Art of Joomla. Sometimes you need to display the current date or ideally the current year, typically in copyright notices or anywhere else required by your template. The following simple php function will allow you to easily achieve this.
<div id="copyright"> Copyright © - <?php echo date('Y');?> Your Company </div> This takes the current date and displays only the year. Obviously, if you don't need the copyright notice you will need to change the text to what you require, but this is basically what you will need. There are more options which you can use with the PHP date function, you can find more information on what you can do with the date function @ http://php.net/date. There are many variations which you can use for the displaying information related to dates.
Only registered users can write comments!
Powered by !JoomlaComment 3.26
3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved." |
|||||||
| Last Updated ( Tuesday, 24 March 2009 ) | |||||||