refactor
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Model\Constant;
|
||||
|
||||
use Core\Db;
|
||||
|
||||
class Constant
|
||||
{
|
||||
protected static string $tableName = '';
|
||||
protected array $rows = [];
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->rows = Db::getRows('select * from ' . self::$tableName);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user