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

I'm trying to work with a Sencha Touch calendar extension (http://www.sencha.com/forum/showthread.php?156351-Ext.ux.TouchCalendar) Here is an
i am trying to use the kal calendar from following url http://github.com/briancollins/Kal . I
I'm trying to implement a event calendar using jquery-ui's datepicker. I've successfully installed the
I'm building a calendar in ASP.NET using Jquery, And I'm trying to implement Print.
I am trying implement the Data transformation using Reflection 1 example in my code.
I am trying to implement a view similar to that of Apple's calendar application's
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 am trying to implement the Jquery datepicker using a google hosted theme. But
Found a really nice code for Accordion nav and am trying implement on our

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.