Re: PEAR::Calendar, error Missing argument 1 for calendar_month()
| From: | Louie Miranda | Date: | Thu, 30 Sep 2004 05:27:15 +0000 |
| Subject: | Re: PEAR::Calendar, error Missing argument 1 for calendar_month() | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-14691@lists.php.net to get a copy of this message | ||
it worked, thank you.
On Wed, 29 Sep 2004 21:28:55 -0700, Matthew Fonda <mfonda@dotgeek.org> wrote:
>
> 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
>
>
--
Louie Miranda
http://www.axishift.com