2017 © Pedro Peláez
 

library yii2-data

Yii 2.0 database additions

image

csa12/yii2-data

Yii 2.0 database additions

  • Saturday, October 31, 2015
  • by csa12
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Yii 2.0 data additions by CSA

These database additions for Yii 2.0 add certain features
for development purposes by CSA and can perhaps be of use to others., (*1)

This repository is available via https://github.com/csa12/yii2-data. For license information check the LICENSE-file., (*2)

Installation

The preferred way to install is through composer., (*3)

Either run, (*4)

composer require csa12/yii2-data

or add, (*5)

"csa12/yii2-data": "dev-master",

to the require section of your composer.json., (*6)

Usage

To use this extension, simply add the following code at the beginning of views/layouts/main.php or any other view file where you would like to check your database connection or table(s) existence., (*7)

use csa\data\Database;

beginPage() ?>
...

And if so desired you can disable showing your content, when the database or table is not found, by adding the following code around the = $content ?> within views/layouts/main.php, (*8)

...
        <?php if ($db) { ?>
        <?= $content ?>
        <? } ?>
...

Note

This version is still under development and not intended for use in any production evironments., (*9)

The Versions

31/10 2015

dev-master

9999999-dev https://github.com/csa12/yii2-data

Yii 2.0 database additions

  Sources   Download

BSD-3-Clause

The Requires

 

by Marc Huizinga

yii2 gridview