$day = Punch::find([
"conditions" => "user_id = ?1 AND punch_date = ?2 AND stop_time = ?3",
"bind" => [
1 => $user_id,
2 => $stop_time[0],
3 => '00:00:00'
]
]);
<div class="col-md-4">
{% include "menu.html" %}
</div>
<div class="col-md-8">
<h1>{% block title %}Welcome to my block{% endblock %}</h1>
{% block content %}
{% endblock %}
</div>
base.html{% for bot_mid_m in mid_menu %}
<ul>
<li>
<a style="color: blue" href="{{ bot_mid_m.get_absolute_url }}">{{ bot_mid_m.menu_bmid_name }}</a>
</li>
</ul>
{% endfor %}
menu.html{% extends 'base.html' %}
{% block title %}Welcome to my blog{% endblock %}
{% block content %}
<h2>Categories</h2>
{% if categories %}
<ul>
{% for category in categories %}
<li><a href="{{ category.get_absolute_url }}">{{ category.title }}</a></li>
{% endfor %}
</ul>
{% else %}
<p>There are no posts.</p>
{% endif %}
{% endblock %}