vhost init...6
This commit is contained in:
parent
0cd774fc30
commit
ffb18b01e4
@ -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]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
5
app/Views/cells/board/reference.php
Normal file
5
app/Views/cells/board/reference.php
Normal 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 ?>
|
||||
@ -317,14 +317,12 @@
|
||||
<li class="bg2">
|
||||
<div class="info">
|
||||
<dl>
|
||||
<dt>입금계과</dt>
|
||||
<dd><?= MALLS['banks']['BANK1']['name'] ?> : <?= MALLS['banks']['BANK1']['account'] ?></dd>
|
||||
<dd><?= MALLS['banks']['BANK2']['name'] ?> : <?= MALLS['banks']['BANK2']['account'] ?></dd>
|
||||
<dd>예 금 주 : <?= MALLS['banks']['BANK2']['holder'] ?></dd>
|
||||
<dt>자료실</dt>
|
||||
<dd><?= view_cell('BoardCell::reference', $viewDatas) ?></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</li>
|
||||
<li class="bg3">
|
||||
<li class=" bg3">
|
||||
<div class="info">
|
||||
<dl>
|
||||
<dt>공지사항</dt>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user