vegas-cmf / core

Vegas CMF Core
MIT License
30 stars 7 forks source link

Please add the following code to the Vegas\DI\Scaffolding #40

Closed adrianmalik closed 9 years ago

adrianmalik commented 9 years ago

Please add the following code to the: Vegas\DI\Scaffolding to make new upload working

protected $model;
....
public function getModel()
{
    if (empty($this->model)) {
        $this->model = new $this->modelName();
    }
    return $this->model;
}