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

  • Home
  • SEARCH
  • 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 9158585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:16:57+00:00 2026-06-17T13:16:57+00:00

I am new to cake PHP. I was working on existing website on cakePHP.

  • 0

I am new to cake PHP. I was working on existing website on cakePHP. Due to some requirements of client I had to add a new column in one of the table in database. I can make entry to all of the field except the one which I recently created. I guess the problem is because that was not present during scaffolding. But I am not aware how to solve this issue.

I am able to access that field while fetching from database by simply adding array('fields'=>'*') in $this->Model_name->find('first',array('fields'=>'*')).

I tried this for making new insert $this->request->data['ModelName']['field_name'] = 'value';
before using save function. But the problem is all the fields gets insert except for this new field that I added.

I hope the thing is clear.

  • 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-17T13:16:58+00:00Added an answer on June 17, 2026 at 1:16 pm

    in your case remind me about 2 of my mistake that make I cannot save my new field.

    1 make sure you have new field in your database table.
    2 in my productin system I was set debug to 0 so model and persisten cache doesn’t update.

    To clear model and persistent cache you can set Configure::write('debug', 2); in app/Config/Core.php or manual delete cache in command line.

    rm -f app/tmp/cache/models/cake_model_*  
    rm -f app/tmp/cache/persistent/cake_core_*
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a CakePHP website that's been working great. I just developed a new
I'm new to cakephp so have just been working through the cookbook and am
I am new to cakephp and have been working through the Apress book Beginning
I had a working cake application that I tar'd up and sent to someone
I'm fairly new to cakephp, I need to find the SUM of a one-to-many
I'm using CakePHP's translatable behavior. I have a few existing fields working fine, but
I am relatively new to Cake PHP framework and was trying few things in
I'm pretty new to cakephp, I did the sample posts tutorial on the website
Hi i am new in cake php and can't solve the problem. The problem
I am very new to PHP and even more new to CakePHP, which is

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.