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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T12:40:42+00:00 2026-06-02T12:40:42+00:00

I am using Kohana version 3 and would like to modify a form input

  • 0

I am using Kohana version 3 and would like to modify a form input field. I am having troubles understanding how this works in kohana. Is the input done by a controller or a helper? What do Controllers and helpers actually do in Kohana?

thanks for any advice,

Rob

  • 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-02T12:40:43+00:00Added an answer on June 2, 2026 at 12:40 pm

    Generally, I would use the Kohana form helpers to build the HTML tags for the form and fields, and pass data into these helper methods from the controller.

    For example, in my view views/contact.php:

    <?php echo Form::open()?>
        <fieldset>
    
            <div class="field">
                <?php echo 
                    Form::label('name', __('Name')),
                    Form::input('name',  $name)
                ?>
            </div>
    
            <?php echo Form::submit('save', 'Save')); ?>
        </fieldset>
    <?php echo Form::close()?>
    

    In controller classes/controller/contact.php

    class Controller_Contact extends Controller {
    
            public function action_index()
            {
                    $view = View::factory('contact')
                            ->set('name', 'Richard');
    
                    $this->response->body($view);
            }
    }
    

    Adding that data to a table in the db is a bit more complicated, but generally you would use a model to do that. Have a read through the ORM documentation: http://kohanaframework.org/3.2/guide/orm

    A controller would handle the request data and would interact with the model to save the data to the database.

    Here’s an example of that process: Kohana ORM and Validation, having problems

    Have a read through the documentation to get a better understanding of these concepts: http://kohanaframework.org/3.2/guide/kohana/

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

Sidebar

Related Questions

I'm using Kohana 2. I would like to catch a database exception to prevent
i have a form using kohana form helper. in a select field i want
I'm using Kohana 3.1 with the ORM/Auth module enabled. I would like to serve
So i'm using kohana user module, and i would like to extend my register
I'm using Kohana 3, which has full support for Unicode. I have this as
I am using the Kohana framework (but I think it's irrelevant for this question)
$x=array('a','b','c'); echo form::dropdown('test', $x, 'b'); I'm using the Kohana form helper to build forms,
I am developing a site using kohana 2.3 and am having trouble with a
How to specify NOW() BETWEEN col1 AND col2 using Kohana Database? $this->where(new Database_Expression('NOW()'), 'BETWEEN',
I am using Kohana but this question applies to Rails, CI, or any other

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.