Hi Friends,
i have come across a strange problem in the date calendar.
i have set up a calendar in a template.
So an example URl would be :
http://mysite.com/index.php/calendar/2008/05
Now, in the above url {segment_3} = 05.
I am assigning this value to a PHP variable in the template as below.
<?php $cal_month = {segment_3}; ?>
Now for all months its working fine EXCEPT August and September. :gulp:
The value in the $cal_month variable is 0 if August or September comes in the url.
i.e. if URLS are http://mysite.com/index.php/calendar/2008/08 OR
http://mysite.com/index.php/calendar/2008/09
then $cal_month = 0 , if i print {segment_3} it shows the proper value for all.
Why is this happening?
For all other months it shows the right value.
Strange error
Thanks,
Davmit