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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T09:25:04+00:00 2026-06-02T09:25:04+00:00

I have an application with CakePHP and I need to insert some row of

  • 0

I have an application with CakePHP and I need to insert some row of data to a table. I have followed the tutorial in the CakePHP book but it doesn’t work.

$this->Temporary->create();
$this->Temporary->set(
    array(
        'Temporary.position_id'=>$employeesAttribute[$arrCount][0]['EmployeeAttribute']['position_id'],
        'Temporary.person_id'=>$employeesAttribute[$arrCount][0]['StatusEmployee']['person_id'],
        'Temporary.job_id'=>$employeesAttribute[$arrCount][0]['Job']['id'],
        'Temporary.unit_id'=>$employeesAttribute[$arrCount][0]['Unit']['id'],
        'Temporary.person_code'=>$employeesAttribute[$arrCount][0]['StatusEmployee']['code'],
        'Temporary.name'=>$employeesAttribute[$arrCount][0]['Person']['first_name'].' '.$employeesAttribute[$arrCount][0]['Person']['middle_name'].' '.$employeesAttribute[$arrCount][0]['Person']['last_name'],
        'Temporary.job'=>$employeesAttribute[$arrCount][0]['Job']['short_desc']
    )
);
$this->Temporary->save();

I have used create() method, set the variable and called the save method but this code doesn’t save the data to my table. What is wrong with this code?

  • 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-02T09:25:07+00:00Added an answer on June 2, 2026 at 9:25 am
    $this->Temporary->create();
    $data = 
        array(
            'Temporary' => array(
                'position_id'=>$employeesAttribute[$arrCount][0]['EmployeeAttribute']['position_id'],
                'person_id'=>$employeesAttribute[$arrCount][0]['StatusEmployee']['person_id'],
                'job_id'=>$employeesAttribute[$arrCount][0]['Job']['id'],
                'unit_id'=>$employeesAttribute[$arrCount][0]['Unit']['id'],
                'person_code'=>$employeesAttribute[$arrCount][0]['StatusEmployee']['code'],
                'name'=>$employeesAttribute[$arrCount][0]['Person']['first_name'].' '.$employeesAttribute[$arrCount][0]['Person']['middle_name'].' '.$employeesAttribute[$arrCount][0]['Person']['last_name'],
                'job'=>$employeesAttribute[$arrCount][0]['Job']['short_desc']
            )
        )
    );
    $this->Temporary->save($data);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a PHP application using CakePHP. I need to present a table showing
i'm developing cakephp application. i need some specific characters in url, like & (ampersand),
I am building a PHP application with CakePHP 2 . I need to have
I have a CakePHP 1.2 application. I'm running into the case where I need
I have integrated galeria to show images in my cakephp application.It works fine.But after
I have a cakePhp application built, and now I'm creating a simple blog based
I have been busy integrating Wordpress to one of a CakePHP application.Last Monday I
I have made a full application in JQM using cakePHP as the server side
I am using JQuery and cakephp for my application. I have created a select
I have a CakePHP application where I am trying to get a count of

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.