vhost init...3
This commit is contained in:
parent
f6cb3984d2
commit
7916447a5b
@ -3,9 +3,8 @@
|
|||||||
namespace App\Cells;
|
namespace App\Cells;
|
||||||
|
|
||||||
use App\Models\CategoryModel;
|
use App\Models\CategoryModel;
|
||||||
use CodeIgniter\View\Cells\Cell;
|
|
||||||
|
|
||||||
class BaseCell extends Cell
|
class BaseCell
|
||||||
{
|
{
|
||||||
|
|
||||||
private $_categoryModel = null;
|
private $_categoryModel = null;
|
||||||
|
|||||||
@ -2,8 +2,9 @@
|
|||||||
|
|
||||||
namespace App\Cells;
|
namespace App\Cells;
|
||||||
|
|
||||||
use App\Cells\BaseCell;
|
use App\Models\CategoryModel;
|
||||||
use App\Models\BoardModel;
|
use App\Models\BoardModel;
|
||||||
|
use App\Cells\BaseCell;
|
||||||
|
|
||||||
class BoardCell extends BaseCell
|
class BoardCell extends BaseCell
|
||||||
{
|
{
|
||||||
@ -14,12 +15,16 @@ class BoardCell extends BaseCell
|
|||||||
}
|
}
|
||||||
public function information(array $cellDatas = [])
|
public function information(array $cellDatas = [])
|
||||||
{
|
{
|
||||||
|
//dd($cellDatas);
|
||||||
helper('Board');
|
helper('Board');
|
||||||
|
$cellDatas['currentCategory'] = $this->getCategoryModel()->getEntity([
|
||||||
|
'uid' => __FUNCTION__
|
||||||
|
]);
|
||||||
$cellDatas['entitys'] = $this->getBoardModel()->getEntitys([
|
$cellDatas['entitys'] = $this->getBoardModel()->getEntitys([
|
||||||
'category' => __FUNCTION__
|
'category' => $cellDatas['currentCategory']->getPrimaryKey()
|
||||||
]);
|
]);
|
||||||
return view(
|
return view(
|
||||||
'Views/cells/board/' . __FUNCTION__,
|
'Views/cells/board/' . $cellDatas['currentCategory']->getPrimaryKey(),
|
||||||
['cellDatas' => $cellDatas]
|
['cellDatas' => $cellDatas]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user