PDA

View Full Version : How to determine month being printed


hbcrosby
11-24-2008, 10:02 PM
I have been successful in installing EPC in Joomla 1.5 including the "printable.php" code. My question is this....when using the "printable.php" code, how can I pull the month name (that is being printed) to place in a text line on top of the list to be printed? Is there a variable I can place in the text line?

I.e. - "New Hope's Event List for XXXXX"

Thank you!

bing

ve9gra
11-24-2008, 10:21 PM
You can use simple PHP. If the variable $mo, or $_REQUEST['mo'] is not defined, then you're showing the current month.

Use date("F", mktime(0,0,0, $mo)); to get the month name.