dev-master
9999999-dev https://github.com/csa12/yii2-dataYii 2.0 database additions
BSD-3-Clause
The Requires
- php >=5.4.0
- fortawesome/font-awesome *
by Marc Huizinga
yii2 gridview
Yii 2.0 database additions
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)
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)
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 ?> <? } ?> ...
This version is still under development and not intended for use in any production evironments., (*9)
Yii 2.0 database additions
BSD-3-Clause
yii2 gridview