public function skipDatabaseQuery($slug)
    {
        $pagesSkippingDatabaseQuery = Config::get('lasallecmsfrontend.pages_not_using_database');

        foreach ($pagesSkippingDatabaseQuery as $page)
        {
            if ($page == ucwords($slug))
            {
                return true;
            }
        }

        return false;
    }
public function skipDatabaseQuery($slug)
    {
        $pagesSkippingDatabaseQuery = Config::get('lasallecmsfrontend.pages_not_using_database');

        foreach ($pagesSkippingDatabaseQuery as $page)
        {
            if ($page == ucwords($slug))
            {
                return true;
            }
        }

        return false;
    }
public function skipDatabaseQuery ( $ slug ) { $ pagesSkippingDatabaseQuery = Config :: get ( 'lasallecmsfrontend.pages_not_using_database' ) ; foreach ( $ pagesSkippingDatabaseQuery as $ page ) { if ( $ page == ucwords ( $ slug ) ) { return true ; } } return false ; }
Skip querying the database for this page?

@param   string $slug
@return  bool
Skip querying the database for this page?