shoppingmallv2 init...
This commit is contained in:
parent
b72db85d18
commit
3e8ba6a2eb
@ -531,8 +531,8 @@ abstract class BaseController extends Controller
|
|||||||
//Totalcount 처리
|
//Totalcount 처리
|
||||||
$this->index_setCondition();
|
$this->index_setCondition();
|
||||||
$this->_viewDatas['total_count'] = $this->_model->countAllResults();
|
$this->_viewDatas['total_count'] = $this->_model->countAllResults();
|
||||||
echo $this->_model->getLastQuery();
|
// echo $this->_model->getLastQuery();
|
||||||
echo "<HR>";
|
// echo "<HR>";
|
||||||
// log_message("debug", __METHOD__ . "에서 TotalCount 호출:" . $this->_model->getLastQuery());
|
// log_message("debug", __METHOD__ . "에서 TotalCount 호출:" . $this->_model->getLastQuery());
|
||||||
//Page, Per_page필요부분
|
//Page, Per_page필요부분
|
||||||
$this->_viewDatas['page'] = (int)$this->request->getVar('page') ?: 1;
|
$this->_viewDatas['page'] = (int)$this->request->getVar('page') ?: 1;
|
||||||
@ -547,7 +547,7 @@ abstract class BaseController extends Controller
|
|||||||
$this->_viewDatas['pagination'] = $this->index_getPagination();
|
$this->_viewDatas['pagination'] = $this->index_getPagination();
|
||||||
//모델 처리
|
//모델 처리
|
||||||
$this->_viewDatas['entitys'] = $this->index_getEntitys();
|
$this->_viewDatas['entitys'] = $this->index_getEntitys();
|
||||||
echo $this->_model->getLastQuery();
|
// echo $this->_model->getLastQuery();
|
||||||
// log_message("debug", __METHOD__ . "에서 findAll 호출:" . $this->_model->getLastQuery());
|
// log_message("debug", __METHOD__ . "에서 findAll 호출:" . $this->_model->getLastQuery());
|
||||||
//setting return_url to session flashdata
|
//setting return_url to session flashdata
|
||||||
helper(['form']);
|
helper(['form']);
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
<?= $this->extend('layouts/front') ?>
|
<?= $this->extend('layouts/front') ?>
|
||||||
<?= $this->section('content') ?>
|
<?= $this->section('content') ?>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
<div><?= html_entity_decode($viewDatas['category']->getHead()) ?></div>
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<?= form_open(current_url(), array("method" => "get")) ?>
|
<?= form_open(current_url(), array("method" => "get")) ?>
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
@ -14,6 +15,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>번호</th>
|
<th>번호</th>
|
||||||
<?php foreach ($viewDatas['fields'] as $field) : ?><th><?= getFieldIndex_Column_BoardHelper($field, $viewDatas) ?></th><?php endforeach ?>
|
<?php foreach ($viewDatas['fields'] as $field) : ?><th><?= getFieldIndex_Column_BoardHelper($field, $viewDatas) ?></th><?php endforeach ?>
|
||||||
|
<th>작업</th>
|
||||||
</tr>
|
</tr>
|
||||||
<?php $cnt = 0 ?>
|
<?php $cnt = 0 ?>
|
||||||
<?php foreach ($viewDatas['entitys'] as $entity) : ?>
|
<?php foreach ($viewDatas['entitys'] as $entity) : ?>
|
||||||
@ -49,5 +51,6 @@
|
|||||||
<?= $viewDatas['pagination'] ?>
|
<?= $viewDatas['pagination'] ?>
|
||||||
</div>
|
</div>
|
||||||
<?= form_close() ?>
|
<?= form_close() ?>
|
||||||
|
<div><?= html_entity_decode($viewDatas['category']->getTail()) ?></div>
|
||||||
</div>
|
</div>
|
||||||
<?= $this->endSection() ?>
|
<?= $this->endSection() ?>
|
||||||
Loading…
Reference in New Issue
Block a user