メインコンテンツまでスキップ

Introduction

Providing necessary functions for using database

メモ

Usually you don't need to use this DB_pdo class. Try to use Model class instead.

About Model class is here.

How to use

You can load DB_pdo class through Application::getClass method.

Controller
$database = $this->getClass('DB_pdo');

// Select query
$result = $database->select('table_name')->execute()->all();

Methods