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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:28:48+00:00 2026-06-17T12:28:48+00:00

I use get form for searching keywords. (CakePHP 2.2.5) I see weird problems. Firstly

  • 0

I use get form for searching keywords. (CakePHP 2.2.5)

I see weird problems.
Firstly from CakePHP documentation : $foo = $this->request->query('value_that_does_not_exist'); give

Error: An Internal Error Has Occurred.

Method query does not exist

I tried that in both Controller and the view.
According to the manual it can be used to:

…read the url query array in an error free manner.

Btw,

$foo = $this->request->query['value_that_exist'];

works fine but I have to check it with “isset()“

Is it a CakePHP bug? I tested with fresh 2.2.5 install.

  • 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-17T12:28:49+00:00Added an answer on June 17, 2026 at 12:28 pm

    No, it is not a bug. The query() method was introduced in CakePHP 2.3.0-beta (see http://bakery.cakephp.org/articles/lorenzo/2012/10/28/cakephp_2_3_0-beta_released#cakerequest) and hence it is not available in CakePHP 2.2.5.

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

Sidebar

Related Questions

I use a get request to receive a list of a data from a
I use VB to get data through my form. I have some optional fields
I would like to use a textarea in html form to get the delimited
How do i get expressjs to use the delete and put methods for form?
In Python I can use get method to get value from an dictionary without
i've been searching through similar questions but i still don't get how implement this
This code populates a form from an API. $('#shipper_search').click(function(){ var searchBy = $('#shipper_search_by').val(); var
I use SmartGwt and I have the following line: formItem.getForm().getField(report_date).getValue().toString(); This returns something like
QUESTION: What is the proper way to use .get() in conjunction with .one() (or
I use file_get_contents(http://www.mydomain.com); to get the content. Then I need to search through it

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.