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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:48:30+00:00 2026-06-01T08:48:30+00:00

I am just a newbie in cakephp and struggled a lot as a beginner,

  • 0

I am just a newbie in cakephp and struggled a lot as a beginner, I hope im not exaggerating. I believe I was on the right track of coding a simple registration application when I found out that I am not able to insert any data in my database. The name of my database is “cake” and this is the default configuration:

public $default = array{
    'datasource'=>'Database/Mysql',
    'persistent'=>false,
    'host'=>'localhost',
    'login'=>'root',
    'password'=>'',
    'database'=>'cake',
    'schema'=>'',
    'prefix'=>''
}

By the way, the index page of my localhost says that I am connected to the database.

  • 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-01T08:48:31+00:00Added an answer on June 1, 2026 at 8:48 am

    try these

    • Your DB config tells me that you are using cakephp 2 +, use

    $this->User->save($this->request->data);

    • Set your debug level higher than 0 in Config/core.php to see errors if they exist

    • Generally the save doesn’t work because of validation. You can list invalid fields by

    debug($this->User->invalidFields()); // will only show when debug > 0

    • The sql log in the bottom (only when debug > 0) will show the insert query, try pasting that query directly into mysql from your mysql front end. See if there are any errors over types, constraints.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am not just a newbie with Javascript. I am developing a simple site
Just a simple question from a relative Java newbie: what is the difference between
I'm just a newbie of Objective C iPhone programming... I see a lot of
Rails newbie here so just want to be sure I'm doing this right. I
Hey all you ruby on railers... I'm just a newbie as of right now..
I'm a newbie to Matlab and just stumped how to do a simple task
I'm a newbie to CakePHP but got strange error. I'm just testing it, how
I'm sure this is a very simple question, but I'm just a newbie so...
Not sure this issue about Qt or C++ in general, I'm just a newbie
having a problem with coding with miranda am just a newbie to functional programming

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.