Skip to content

Commit 8ec4d22

Browse files
set model on initialization (#884)
* set model on initialization * Apply fixes from StyleCI * move to View class * remove from Grid class Co-authored-by: Imants Horsts <DarkSide666@users.noreply.github.com>
1 parent 9f9f641 commit 8ec4d22

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/View.php

+5
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,11 @@ public function init()
365365
}
366366

367367
$this->_add_later = [];
368+
369+
// allow for injecting the model with a seed
370+
if ($this->model) {
371+
$this->setModel($this->model);
372+
}
368373
}
369374

370375
/**

0 commit comments

Comments
 (0)