_boardModel = $this->_boardModel ?: new BoardModel(); } public function information(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] ); } 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] ); } }