debug
This commit is contained in:
@@ -618,10 +618,10 @@ class Novel extends BaseController
|
|||||||
|
|
||||||
$strBaseUrl = sprintf('/pc/xiaoshuo/%s-%s/mulu/%s/{page}', $arrNovel['og_novel_pin_yin'], $intNId, $strOrder);
|
$strBaseUrl = sprintf('/pc/xiaoshuo/%s-%s/mulu/%s/{page}', $arrNovel['og_novel_pin_yin'], $intNId, $strOrder);
|
||||||
$arrPaginator = CusteomPage02::generate($intPage, $arrPage['total'], $intLimit, $strBaseUrl, $intButtomNum);
|
$arrPaginator = CusteomPage02::generate($intPage, $arrPage['total'], $intLimit, $strBaseUrl, $intButtomNum);
|
||||||
|
echo '<pre>';
|
||||||
// echo '<pre>';
|
|
||||||
// print_r($arrPaginator);
|
print_r($arrPage);
|
||||||
// exit;
|
exit;
|
||||||
// 章节目录
|
// 章节目录
|
||||||
$arrChapter = [
|
$arrChapter = [
|
||||||
['c_sort_num' => 1, 'name' => '第1章', 'created_at' => '作者1'],
|
['c_sort_num' => 1, 'name' => '第1章', 'created_at' => '作者1'],
|
||||||
@@ -635,6 +635,7 @@ class Novel extends BaseController
|
|||||||
|
|
||||||
View::assign([
|
View::assign([
|
||||||
'arrNovel' => $arrNovel,
|
'arrNovel' => $arrNovel,
|
||||||
|
'arrPage' => $arrPage,
|
||||||
'arrChapter' => $arrChapter,
|
'arrChapter' => $arrChapter,
|
||||||
'intNovelId' => $intNovelId,
|
'intNovelId' => $intNovelId,
|
||||||
'intPage' => $intPage,
|
'intPage' => $intPage,
|
||||||
|
|||||||
@@ -57,9 +57,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="fL_con">
|
<div class="fL_con">
|
||||||
<ul>
|
<ul>
|
||||||
{foreach $arrChapter as $Chapter}
|
{foreach $arrPage.data as $Chapter}
|
||||||
<li>
|
<li>
|
||||||
<a href="/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$Chapter.c_sort_num}" target="_blank">{$Chapter.created_at}</a>
|
<a href="/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$Chapter.c_sort_num}" target="_blank">{$Chapter.name}</a>
|
||||||
</li>
|
</li>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user