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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:13:30+00:00 2026-06-10T03:13:30+00:00

I did the following query in cakePHP : $this->{ModelName}->find(‘all’) , and it returned an

  • 0

I did the following query in cakePHP : $this->{ModelName}->find('all') , and it returned an array like this :

Array
(
    [0] => Array
        (
            [0] => Array  // ModelName
                (
                    [id] => 83
                    [field1] => value1
                    [field2] => value2
                    [field3] => value3
                )
        )
    [1] => Array
        (
           ...
        )
)

Instead of the correct display which is supposed to be like that :

Array
(
    [{ModelName}] => Array
        (
            [0] => Array  // ModelName
                (
                    [id] => 83
                    [field1] => value1
                    [field2] => value2
                    [field3] => value3
                )
        )
    [{ModelName}] => Array
        (
           ...
        )
)

CakePhp version is 2.1

A:Don’t use PDO_MYSQL-1.0.2.tgz,please use –with-pdo-mysql.

  • 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-10T03:13:32+00:00Added an answer on June 10, 2026 at 3:13 am

    Can you check if your server meets the minimums requirements for cakephp ?

    Requirements

  2. HTTP Server. For example: Apache. mod_rewrite is preferred, but by no means required.
  3. PHP 5.2.8 or greater.
  4. Technically a database engine isn’t required, but we imagine that most applications will utilize one. CakePHP supports a variety of database storage engines:

  5. MySQL (4 or greater)
  6. PostgreSQL
  7. Microsoft SQL Server
  8. SQLite
  9. Note :
    The built-in drivers all require PDO. You should make sure you have the correct PDO extensions installed.

    http://book.cakephp.org/2.0/en/installation.html#Requirements

    You can check your current version within the built-in function in php phpinfo(). Just write it in any page. Also check your php.ini file to see if the pdo extension for the database your are using is installed correctly

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

Sidebar

Related Questions

This following query returned null. SELECT `email`, `password`, `salt` FROM `users` WHERE `password` =
I have following query in my project, $values = array(test=>value) $this->_db->update(tablename,$values,array('id = ?'=> $data['id'],'wid
hay all, I just did the following: a = input(give a word: ) b
Did I not get enough sleep or what? This following code var frame=document.getElementById(viewer); frame.width=100;
I have created a temporary table using cakephp $this->Model->query() and inserted some records using
I did the following query: var list = from book in books where book.price
I have the following query that gives me an extract (I am putting this
I executed the following Query in SQL Server Management studio 2005 and I did
i have in following code error, what is cause? did is true following query?(how
I did the following linq query var results = from myRow in QCAllDataSet.DataTable1.AsEnumerable() where

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.