Web Development

A common gotcha in KnockoutJS is negating an observable.

Most people would do the following:

<div class='center-block col-md-8 col-sm-8 col-xs-8' data-bind="visible: !isSearchPage">
    <div id="search-bar-page" type="text/html"><?php echo $this->fetch('search/search-bar.tpl.php'); ?></div>
</div>

The right thing to do is access it as a function:

<div class='center-block col-md-8 col-sm-8 col-xs-8' data-bind="visible: !isSearchPage()">
    <div id="search-bar-page" type="text/html"><?php echo $this->fetch('search/search-bar.tpl.php'); ?></div>
</div>

Goodluck!