Re: PEAR::Calendar, error Missing argument 1 for calendar_month()
| From: | Matthew Fonda | Date: | Thu, 30 Sep 2004 04:28:55 +0000 |
| Subject: | Re: PEAR::Calendar, error Missing argument 1 for calendar_month() | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-14690@lists.php.net to get a copy of this message | ||
You are getting those errors because you are missing two parameters,
year and months.
Try something like:
$Month = & new Calendar_Month(2004, 9);
That will work just fine. You just need to specify the year and month
you would like to use.
--
Regards,
Matthew Fonda
On Wed, 2004-09-29 at 20:52, Louie Miranda wrote:
> error on browser:
> Warning: Missing argument 1 for calendar_month() in
> /usr/local/lib/php/Calendar/Month.php on line 62
>
> Warning: Missing argument 2 for calendar_month() in
> /usr/local/lib/php/Calendar/Month.php on line 62
> 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
> 27 28 29 30 31
>
> code:
> <?php
> require_once('Calendar/Month.php');
>
> $Month = & new Calendar_Month();
> $Month->build();
>
> while ( $Day = & $Month->fetch() ) {
> echo ( $Day->thisDay() ."\n" );
> }
> ?>
>
>
> what could i be missing? this is just a simple example i got from google?
>
> --
> Louie Miranda
> http://www.axishift.com