vhost init...6

This commit is contained in:
최준흠 2024-07-11 11:57:36 +09:00
parent 0cd774fc30
commit ffb18b01e4
3 changed files with 23 additions and 5 deletions

View File

@ -28,4 +28,19 @@ class BoardCell extends BaseCell
['cellDatas' => $cellDatas] ['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]
);
}
} }

View File

@ -0,0 +1,5 @@
<?php foreach ($cellDatas['entitys'] as $entity) : ?>
<?php foreach (['title', 'created_at'] as $field) : ?>
<div><?= getFieldCell_Row_BoardHelper($field, $entity, $cellDatas) ?></div>
<?php endforeach ?>
<?php endforeach ?>

View File

@ -317,14 +317,12 @@
<li class="bg2"> <li class="bg2">
<div class="info"> <div class="info">
<dl> <dl>
<dt>입금계과</dt> <dt>자료실</dt>
<dd><?= MALLS['banks']['BANK1']['name'] ?> : <?= MALLS['banks']['BANK1']['account'] ?></dd> <dd><?= view_cell('BoardCell::reference', $viewDatas) ?></dd>
<dd><?= MALLS['banks']['BANK2']['name'] ?> : <?= MALLS['banks']['BANK2']['account'] ?></dd>
<dd> &nbsp;&nbsp;: <?= MALLS['banks']['BANK2']['holder'] ?></dd>
</dl> </dl>
</div> </div>
</li> </li>
<li class="bg3"> <li class=" bg3">
<div class="info"> <div class="info">
<dl> <dl>
<dt>공지사항</dt> <dt>공지사항</dt>