Why the error message do not appear?
<p>I created search function for my blog. Source of my View -</p>

<pre><code>&lt;?php
if (!empty($query)):
    foreach ($query as $item):
        echo '&lt;h2&gt;&lt;a href="/article/' . $item['slug'] . '"&gt;' . $item['virsraksts'] . '&lt;/a&gt;&lt;/h2&gt;';
        echo '&lt;p&gt;' . nl2br($item['saturs']) . '&lt;/p&gt;';
    endforeach;
else:
    echo 'Nothing found!';
endif;
?&gt;
</code></pre>

<p>When I submit a wrong search query, script want to show the error message 'Nothing found!' but this message do not appear. Why the error message don't appear?</p>
