cambiado POD para cogerlo de la nueva tabla de variables

This commit is contained in:
2024-12-26 16:28:26 +01:00
parent afb7ca0812
commit 93d3793ef9
6 changed files with 17 additions and 63 deletions

View File

@ -47,4 +47,13 @@ class ConfigVariableModel extends Model
protected $afterFind = [];
protected $beforeDelete = [];
protected $afterDelete = [];
public function getVariable($name)
{
$builder = $this->db
->table($this->table . " t1")
->where('name', $name);
return $builder->get()->getFirstRow();
}
}