DI model generator

This commit is contained in:
Manuel Raynaud
2012-12-21 15:03:26 +01:00
parent 6ba59276e1
commit e1a756405d
9 changed files with 803 additions and 2 deletions

View File

@@ -6,4 +6,9 @@ use Thelia\Model\Base;
class Config extends Base
{
public function read($search, $default)
{
return $this->db->config()->where("name",$search)->fetch()?:$default;
}
}