marc-leopold/cms/plugins/rainlab/builder/classes/modelmodel/templates/model.php.tpl

24 lines
353 B
Smarty
Raw Permalink Normal View History

2019-02-25 14:56:59 +00:00
<?php namespace {namespace};
use Model;
/**
* Model
*/
class {classname} extends Model
{
use \October\Rain\Database\Traits\Validation;
{dynamicContents}
/**
* @var string The database table used by the model.
*/
public $table = '{table}';
/**
* @var array Validation rules
*/
public $rules = [
];
}