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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:17:28+00:00 2026-05-24T21:17:28+00:00

Assuming I have a view in CakePHP which uses the Form Helper to create

  • 0

Assuming I have a view in CakePHP which uses the Form Helper to create the form fields like so:

echo $this->Form->create();
echo $this->Form->input('id');
echo $this->Form->input('headline');
echo $this->Form->input('paragraph');
echo $this->Form->end(__('Submit', true));

…and assuming once the form is submitted to the controller I then do a save() to update the record…

How would I include another input field in the form that is NOT associated to the model in question and which I want to put in there to capture another piece of data that I intend to process separately in the controller action?

(To give some background: the additional field I want to add is actually an image filename. My images table is a completely separate entity, and because it therefore has no association with the model I’m save()ing, I believe I need to capture the information in an additional field on the form, then process it ‘manually’ in the controller action – i.e., by importing the images model and creating a new record in it based on the image upload filename I’ve added to the form.)

Hope that makes sense!

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-05-24T21:17:28+00:00Added an answer on May 24, 2026 at 9:17 pm
    echo $this->Form->input('file_image', array('type'=>'file'));
    

    Then in your controller see what is returned and use that file and upload it to your server.

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

Sidebar

Related Questions

Assuming I have a tree structure UL --LI ---INPUT (checkbox) And I want to
Assuming I have fonts installed which have the appropriate glyphs in them, is there
Assuming I have the following two JQuery functions - The first, which works: $(#myLink_931).click(function
I have a listbox bound to a view model observable collection: This works fine,
I have to implement a application which displays a grid view of thubmnails each
Assuming that I have an entity which is mapped with Hibernate ( E )
I have this if statement in my video show view: <% if @video.user ==
In an MVC style Ext JS 4 application, assuming I have a single controller/view/store/model
I have an About View which I push onto a NavigationController. The view has
I have inserted a definition for a view in $template_dir/sql/$someTableName.sql file. (create or replace

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.