<? $connection=Yii::app()->db; $sql = "SELECT id,username FROM users"; $command = $connection->createCommand($sql); $dataReader=$command->query(); $rows=$dataReader->readAll(); print_r($rows); ?>
Subscribe to:
Post Comments (Atom)
Setup VueJS in Laravel
Setup VueJS in Laravel 1. You will need to install javascript dependencies by running the following command on your terminal. npm i...
-
Form <?= $form -> field ( $model , 'categories' ) -> dropDownList ( $model -> CategoryDro...
-
Step 1 view set helper use yii\helpers\Html; use yii\helpers\Url; Step 2 Table design in view <table id="dtofficer...
No comments:
Post a Comment