diff --git a/app/Cells/BoardCell.php b/app/Cells/BoardCell.php index a9ce4d8..90d540c 100644 --- a/app/Cells/BoardCell.php +++ b/app/Cells/BoardCell.php @@ -28,4 +28,19 @@ class BoardCell extends BaseCell ['cellDatas' => $cellDatas] ); } + public function reference(array $cellDatas = []) + { + //dd($cellDatas); + helper('Board'); + $cellDatas['currentCategory'] = $this->getCategoryModel()->getEntity([ + 'uid' => __FUNCTION__ + ]); + $cellDatas['entitys'] = $this->getBoardModel()->getEntitys([ + 'category' => $cellDatas['currentCategory']->getPrimaryKey() + ]); + return view( + 'Views/cells/board/' . $cellDatas['currentCategory']->getPrimaryKey(), + ['cellDatas' => $cellDatas] + ); + } } diff --git a/app/Views/cells/board/reference.php b/app/Views/cells/board/reference.php new file mode 100644 index 0000000..1f4d6b4 --- /dev/null +++ b/app/Views/cells/board/reference.php @@ -0,0 +1,5 @@ + + +