0
votes

It's my very first time installing and using CakePHP on localhost. I've accomplished all the steps that are required in order to install CakePHP. After installing I checked my database and it is not showing me any tables in my database. Is something wrong or does CakePHP not insert any tables while installing?

Below is my status of CakePHP:

Your version of PHP is 5.2.8 or higher.

Your tmp directory is writable.

The FileEngine is being used for core caching. To change the config edit APP/Config/core.php

Your database configuration file is present.

Cake is able to connect to the database.

CakePHP: the rapid development php framework (default) 0 query took ms Nr Query Error Affected Num. rows Took (ms)

3

3 Answers

1
votes

No, there is nothing wrong. CakePHP doesn't create any tables for you because it cannot know what tables your application will use.

1
votes

You can use the Bake console to setup and create the database after the basic installation. See http://book.cakephp.org/2.0/en/console-and-shells/code-generation-with-bake.html

1
votes

A typical Cake workflow is

  1. Create your tables following Model an database conventions

  2. Generate the application code using bake

  3. Refine the application