SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jan 2005
    Location
    Sydney, Australia
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do I build an OOPHP weekly calendar?

    Hi all,

    I've been digesting Fuecks' (very helpful) PHP Anthology, and have built a monthly-view calendar, with links to my MySQL events db... works a treat. BUT I need to include a weekly view (i.e. only showing Monday -> Sunday week-by-week), and I'm stumped.

    I've been trying to use the Week class included, searched online (And on Sitepoint) but getting nowhere. Has anyone built a weekly view calendar here? esp. using Fuecks' classes? Any help mucho appreciado!

    catchy

  2. #2
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Sorry, I don't know that book. Tell us where we can see the code or alternatively post a little bit of pertinent code.

  3. #3
    SitePoint Member
    Join Date
    Jan 2005
    Location
    Sydney, Australia
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Cups,

    Er... it's a Sitepoint book: http://www.sitepoint.com/books/phpant1/. I'm using (or trying to use) Harry's DateMath class -- which includes the DateMath, dayOfWeek and weekOfYear functions -- and the Week class.

    I've played around with the monthly calendar (Vol.I, p.195 if that helps), but I'm after a weekly calendar, and I can't get my head around it...

    Hope that helps...?

    Thanks a million!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •