<?php use app\components\UserHelper; ?>
<?php foreach($mycourses as $onecourse){ ?>
    <tr>
      <td><?php echo $onecourse->name; ?></td>
      <td><?php echo UserHelper::showSpecialpathname($onecourse->specialpath); ?></td>
      <td><a class="layui-btn layui-btn-sm" onclick="chooseCourseOk(<?php echo $onecourse->id; ?>, '<?php echo $onecourse->name; ?>');">确定</a></td>
    </tr>
<?php } ?>