I see in phpbb template system it has <!-- PHP --> code <!-- ENDPHP --> tags in template and you can include php code inside them <!-- PHP --> = start tag of php <?php <!-- ENDPHP --> = ?> I want to use something else in mustache php, like: `{{php}} {{/php}}` is there any chance to do that?

Member Avatar
+0 forum 0

hello, I have trouble with mustache php template engine. I have this: $get2 = mysqli_query($link,"SELECT * FROM users_table"); while($row = mysqli_fetch_assoc($get2)) { $values3 = array('repo' => array( 'name3'=>$row['user_name'], ),); } And in template file i try to catch all with: <select> {{#repo}} <option value="{{ name3 }}">{{ name3 }}</option> {{/repo}} </select> Its shows only first name. I have 2 names in table 'lqlqlq' and 'lqlqlq2', it shows only lqlqlq2. Maybe i dont understand the way to work with while cycles and array's. Can someone with experience with this help me ? PS: I try with {{ . }} too.

Member Avatar
Member Avatar
+0 forum 3

The End.