We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello. I have this error on my search page.
templates/search.php:
<?php snippet('header') ?> <form> <input type="search" name="q" value="<?= esc($query) ?>"> <input type="submit" value="Search"> </form> <ul> <?php foreach($results as $result): ?> <li> <a href="<?= $result->url() ?>"> <?= $result->title()->html() ?> </a> </li> <?php endforeach ?> </ul> <?php snippet('footer') ?>
controllers/search.php:
<?php return function($site, $pages, $page) { $query = get('q'); $results = page('blog') ->index() ->visible() ->fuzzySearch($query, 'title|text'); $results = $results->paginate(20); return array( 'query' => $query, 'results' => $results, 'pagination' => $results->pagination() ); };
How can I fix it?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello.
I have this error on my search page.
templates/search.php:
controllers/search.php:
How can I fix it?
The text was updated successfully, but these errors were encountered: