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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:31:56+00:00 2026-06-11T05:31:56+00:00

Good Day to all. I am currently developing a chat application using cakePHP. It

  • 0

Good Day to all. I am currently developing a chat application using cakePHP. It will be a chat application that focuses on answering questions. That means the user will receive an automated response based on his/her question. I am working on the chat interface right now that doesn’t require the user to login. The chat application will only be interacting to a database table once the user has sent the question. Now my problem is on how to send the question to a method in the controller where it will be parsed. I tried to do the following in the view file:

<!--View/People/index.ctp-->
<h1>This is the chat interface</h1>
<?php $this->Html->charset(); ?>

<p>
<!--This is the text area where the response will be shown-->
<?php
echo $this->Form->create(null);
echo $this->Form->textarea('responseArea', array('readonly' => true, 'placeholder' => 
'***********************************************************************************
WELCOME! I am SANTI. I will be the one to answer your questions regarding the enrollment process 
and other information related to it. ***********************************************************************************', 'class' => 'appRespArea'));
echo $this->Form->end();
?>
</p>

<p>
<!--This is the text area where the user will type his/her question-->
<?php 
echo $this->Form->create(null, array('type' => 'get', 'controller' => 'people', 'action' => 'send', ));
echo $this->Form->textarea('userArea', array('placeholder' => 'Please type your question here', 'class' => 'userTextArea'));
echo $this->Form->end('Send');
?>
</p>

This is the controller:

<!--Controller/PeopleController.php-->
<?php
class PeopleController extends AppController{
    public $helpers = array('Form');

    public function index(){

    }

    public function send(){
        //parsing logic goes here
    }
}
?>

As you can see, I am telling the form in index.ctp to point the action to the send() method in PeopleController so it can parse the question before interacting with the database. The problem that arises when I click the button is that I am always redirected to /users/login which is not what I want to happen. I just want the application to point itself to /people/send. What seems to be the problem in that case? I have tried to look for answers both in the Internet and in the documentation and then tested them but nothing has resolved the problem so far. Can anyone please help me on this? I’ve been trying to resolve this for so many days.

I keep on getting this error:

Missing Method in UsersController
Error: The action *login* is not defined in controller *UsersController*

Error: Create *UsersController::login()* in file: app\Controller\UsersController.php.

<?php
class UsersController extends AppController {


public function login() {

}

}
  • 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-11T05:31:57+00:00Added an answer on June 11, 2026 at 5:31 am

    If you are using Auth Component, then you might need to change your PeopleController code:

    <!--Controller/PeopleController.php-->
    <?php
    class PeopleController extends AppController{
        public $helpers = array('Form');
    
       public beforeFilter()
       {
          parent:: beforeFilter();
          $this->Auth->allow('index', 'send');
       }
    
       public function index(){
    
       }
    
       public function send(){
        //parsing logic goes here
       }
    }
    ?>
    

    This is because of you used people/send as a form action. And the user is not logged in, it means there is no any Auth session has been set. Thats why it always redirect the user to login page, and if there is not login page, then it will show you the error.

    So I made the send() method also public, so that anyone can access it.
    Hope this concept will help you.

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

Sidebar

Related Questions

good day! im developing an app in c++ and winpcap that will list all
Good day, all. I know that this is a pretty basic question in terms
I'm currently developing a program that will generate reports based upon lead data. My
Good day all, I have a preset situation that can't be changed, that revolves
Good day to all. I am using zend+smarty, but I don't think the framework
Good day, Currently, we are using ByteArrayInputStream for our reset-able InputStream. My problem with
Good Day All we are trying to do is inside a trigger make sure
Good day all, first of all, what am trying to do is have an
Good day to all, I have the following problem I have to convert the
Hi and Good day to all, Google App Script can be used in so

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.