Files
yii2/docs/guide/start-databases.md
2014-05-08 17:59:32 -04:00

789 B

Working with Databases

Note: This section is under development.

In this section, we will describe how to create a new page to display data fetched from a database table. To achieve this goal, you will create an action, a view, and an Active Record model that can be used to fetch and represent database data.

Through this tutorial, you will learn

  • How to configure database connections;
  • How to define an Active Record class;
  • How to query data using the Active Record class;
  • How to display data in a view in a paginated fashion.

Creating a Model

Creating an Action

Creating a View

How It Works

Summary