Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4566758
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T18:50:01+00:00 2026-05-21T18:50:01+00:00

im trying to implement a calendar in my website, im using code from: http://www.yiiframework.com/forum/index.php?/topic/3889-free-form-calendar-application/

  • 0

im trying to implement a calendar in my website, im using code from: http://www.yiiframework.com/forum/index.php?/topic/3889-free-form-calendar-application/ The main code is in the second post. But the thing is that the week starts on sunday and i need to change it to monday and i can’t figure out how to do that. A little help is needed!:)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T18:50:02+00:00Added an answer on May 21, 2026 at 6:50 pm

    I haven’t used that class before, but reading the source code I see this line:

    /* table headings */
    $headings = array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
    

    initializing the variable headings whose contents are not modified in the whole program, and they are simply printed to the HTML string (variable calendar) with an implode.

    This class also lacks a parameter for the constructor to tell it that the user needs the output with Monday (or any other day) as the first day of the week…

    If you want to modify this class in order to implement that functionality, you should do:

    • For the heading cells: make your changes around the line where the implode over the headings variable is done.
    • For the remaining cells: analyze carefully the variable running_day.
    • Also do not forget that it is nice to have this behaviour set by a variable given as parameter to the constructor of the class.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to implement this gallery on my website. http://coffeescripter.com/code/ad-gallery/ It is noted in the
i am trying to use the kal calendar from following url http://github.com/briancollins/Kal . I
I'm building a calendar in ASP.NET using Jquery, And I'm trying to implement Print.
I'm trying to implement the code from showing dialog while loading layout by setContentView
I am trying to implement a menu into an area. http://www.gardensandhomesdirect.co.uk/newhomepage You will see
trying to implement a dialog-box style behaviour using a separate div section with all
Am trying to implement a generic way for reading sections from a config file.
I have been trying to implement Win32's MessageBox using GTK. The app uses SDL/OpenGL,
I am currently trying to implement the wonderful jQuery plugin 'week calendar' ( here
I am trying to implement a calendar system with the ability to schedule other

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.