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 7958495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:25:54+00:00 2026-06-04T04:25:54+00:00

I want to show –Select– as the default value using the CakePHP form helper,

  • 0

I want to show –Select– as the default value using the CakePHP form helper, and for this value to be selected by default.

Current code:

echo $this->Form->month('m');
echo $this->Form->day('d');
echo $this->Form->year('y');

Thanks.

  • 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-06-04T04:25:55+00:00Added an answer on June 4, 2026 at 4:25 am

    This is more correct than shaikh’s answer:

    echo $this->Form->month('m', array('empty' => __('-- Select --')));
    

    Doesn’t require javascript and is easily translated in the future. This is all clearly written in the API reference.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want show 123 in my input tag value i write this: <INPUT TYPE=text
I'm using Drupal 7 and Views module in my site. And want show number
i want to show a grapph/bar chart in iphone how do i do this
I want show a form as a dialog but problem is that the worker
I want show the iphone keyboard. How can I write the code (programmatically) to
I want show weather information from xml to this URL: http://www.google.com/ig/api?weather=roma&hl=it using this script:
I using class Overlay to marker place on map.. I want show infomation of
i want show tooltip with image tag and i have written code like below
I want show dialog after finish Thread. In thread I am changing TextView's Value
i want to hide and show my text box according to drop down select

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.