本文整理汇总了PHP中app\models\Course::getChapterFiles方法的典型用法代码示例。如果您正苦于以下问题:PHP Course::getChapterFiles方法的具体用法?PHP Course::getChapterFiles怎么用?PHP Course::getChapterFiles使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类app\models\Course
的用法示例。
在下文中一共展示了Course::getChapterFiles方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
</div>
<div class="col-lg-12 col-md-12 col-sm-12 course-learn-chapter">
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
<?php $i = 1; foreach ($chapterList as $chapter): ?>
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="heading<?php echo $i;?>">
<h4 class="panel-title">
<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse<?php echo $i;?>" aria-expanded="true" aria-controls="collapseOne">
<span class="fa fa-list"></span><?php echo $chapter['chapterName'];?>
</a>
</h4>
</div>
<div id="collapse<?php echo $i;?>" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
<div class="panel-body">
<?php foreach (Course::getChapterFiles($chapter['id'], $chapter['lft'], $chapter['rgt']) as $model): ?>
<div class="learn-course-name"><a href="/resource/play?id=<?php $res = $resModel->getVideo($model->id);echo $res['id'];?>"><span class="fa fa-play-circle-o"></span><span class="chapter-h2"><?php echo $model->name;?></span></a></div>
<?php endforeach;?>
</div>
</div>
</div>
<?php $i++;endforeach; ?>
</div>
</div>