This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use yii\db\ActiveRecord; | |
| use yii\db\QueryInterface; | |
| use yii\web\Controller; | |
| use yii\web\NotFoundHttpException; | |
| class BaseController extends \yii\web\Controller { | |
| /** | |
| * Method to find any model that can be used in any controller. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace middleware\multilanguage; | |
| class Language { | |
| protected $language; | |
| public function __construct($default) { | |
| if (!is_string($default)) { | |
| throw new \Exception('Not a string.'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use MysqliDb; | |
| /** | |
| * A simple model-styled wrapper for [MySQLi Database Class](https://github.com/joshcam/PHP-MySQLi-Database-Class) | |
| * | |
| * TODO: - Implement method that returns all data as an array; | |
| * - Store joined data in model; | |
| * |