remove codeigniter
This commit is contained in:
@@ -8,7 +8,7 @@ class EmailTemplate extends BaseModel
|
||||
{
|
||||
protected $table = 'email_templates';
|
||||
|
||||
// CI model didn't specify timestamps; keep off unless your table has created_at/updated_at.
|
||||
// legacy model didn't specify timestamps; keep off unless your table has created_at/updated_at.
|
||||
public $timestamps = true;
|
||||
|
||||
protected $fillable = [
|
||||
@@ -40,7 +40,7 @@ class EmailTemplate extends BaseModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Equivalent of CI getActiveTemplates():
|
||||
* Equivalent of legacy getActiveTemplates():
|
||||
* is_active=1, orderBy template_key ASC
|
||||
*/
|
||||
public static function getActiveTemplates()
|
||||
@@ -52,7 +52,7 @@ class EmailTemplate extends BaseModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Equivalent of CI findByKey():
|
||||
* Equivalent of legacy findByKey():
|
||||
* template_key = $key AND is_active=1
|
||||
*/
|
||||
public static function findByKey(string $key): ?self
|
||||
|
||||
Reference in New Issue
Block a user