这是第二页
<div class="accordion__item">
<a href="<?= base_url(); ?>client/progress?id#$habit->id; ?> ">
<div class="accordion__header collapsed" data-toggle="collapse" data-target="#bordered_no-gutter_collapseThree">
<span class="accordion__header--text">Progress By Habit</span>
<span class="accordion__header--indicator style_two"></span>
</div>
</a>
<div id="bordered_no-gutter_collapseThree" class="collapse accordion__body" data-parent="#accordion-four">
<?php
if (!empty($all_habits)) {
foreach ($all_habits as $habit) { ?>
<div class="accordion__header accordion" id="prog_habit" value="<?= $habit->id; ?>">
<span class="accordion__header--text"></span><?= $habit->title; ?></span>
</div>
<?php }
} ?>
</div>
</div>
这是第一页,我想重定向此页:
<a href="<?= base_url() ?>client/progress?id=<?= $habit->id; ?> " class="btn btn-success shadow btn-xs sharp mr-1 mx-1"><i class="fa fa-eye"></i></a>
1条答案
按热度按时间yhuiod9q1#
你需要在第一个页面的网址使用片段像这样:
第二页像这样
我希望这段代码对你有用!编码快乐!