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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:01:56+00:00 2026-05-23T14:01:56+00:00

sorry for my lack of knowledge here but I’m new to cakephp and while

  • 0

sorry for my lack of knowledge here but I’m new to cakephp and while I’ve written the most basic php before I’ve never tried to do anything anywhere near complicated, so I’m out of my depth but loving learning all about cake.

Basically my app will have users who will be able to create profiles pages. After clicking go on the homepage, they will see a screen with a form on it. The inputs will be username, email and password for the user model plus I want them to enter a film-name and a colour which will be part of profile model.

They then click to submit and stuff gets submitted to my users_controller ‘register’ action which saves the user to the database etc and if all goes well redirects them to a page where they will enter more details. The trouble is I need to get access to the film-name and colour they entered before and I’m not sure how I should be handling that.

Should I be trying to save their profile to the database at the same time as saving their user details? If so how do I do that since I’d be in the users_controller?

I know I could ask for the user and profile details on separate screens but I really want them to choose their film and colour on the same screen as choosing their username. Plus I don’t want to have to make film-name and colour part of the user model

  • 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-23T14:01:56+00:00Added an answer on May 23, 2026 at 2:01 pm

    A controller can access multiple models using $uses.

    class UsersController extends AppController {
        var $uses = array('User', 'Profile');
        ...
    

    These can then be accessed as normal.

    $this->Profile->save($this->data["Profile"]);
    

    You could then save the profile data at this point, and then forward to the profile editing page, allowing the user a chance to double check the details they’ve already entered, and enter any additional fields if applicable.

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

Sidebar

Related Questions

Sorry being a bit daft. But I come to understand (my lack of knowledge)
I am pretty new to this so sorry for my lack of knowledge. I
Sorry if this has been discussed before, but could nt find a suitable answer
Sorry if this has been answered already, but I think I actually lack the
This is my first project sorry for my lack of knowledge, this is the
sorry for asking again and again, because lack of knowledge in perl and I
Sorry if this doesn't make any sence, but I'm trying my best to understand
sorry but i cant solve my problem, you know , Im a noob. I
Sorry for the terribly vague title :) I am new to macros and am
(sorry for my bad english) I'm developing a basic chrome extension that make some

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.