在我的Mustache模板中,我想评论几行,但我无法做到.我仍然在HTML中显示评论.添加评论的正确方法是什么?有人可以帮我解决这个问题吗?
这是我的代码:
<script type="text/html" id="inspector-splitViewBase">
<div class="inspector-split-view-container flex-1 flex-fill flex-down">
<header class='split-view-inspector-header'>
<div class="view-title">Source Assets</div>
{{!-- <div class="actions"> commented
<span class="label">Actions</span>
<span class="gear"></span>
</div> --}} - comment is not working
</header>
<div class='search-container'>
<span class="search-icon"></span>
<input type="text" value="" class="inspector-search" />
</div>
<div class="source-assets-list-container flex-1"></div>
<footer></footer>
</div>
</script>
Run Code Online (Sandbox Code Playgroud) 我需要找到Moodle中存储日志数据的位置.在Moodle数据库中有一个名为"log"的表,其中存储了日志数据.但是,我可以让Moodle报告显示绝对没有存储在此表中的日志记录数据.我正在使用Moodle版本2.7.8.
我有两个表:product和product_type(与模型相关的产品和Product_type):
product : product_id, product_type_id, name, etc...
product_type : product_type_id, name, desc, etc...
Run Code Online (Sandbox Code Playgroud)
两者都与关键"product_type_id"相关.
我使用gii crud生成器为两个表创建了crud.现在,在产品表单页面上,我想使用Yii ActiveRecord在下拉字段中显示所有product_type名称的列表.我在views/product/_form.php脚本中添加了这一行:
<?php
$list = CHtml::listData(ProductType::model()->findAll(array('order' => 'product_type_name')), 'id', 'id');
echo $form->dropDownList($model, 'product_type_id', $list);
?>
Run Code Online (Sandbox Code Playgroud)
但它显示空白下拉字段:(
我怎样才能做到这一点?