Skip to content
Search control for Nette Framework
PHP HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests
.gitignore
.travis.yml
LICENSE
README.md
composer.json
phpstan.neon

README.md

Search control

Build Status Licence Latest stable PHPStan

Installation

The recommended way to is via Composer:

composer require surda/search

After that you have to register extension in config.neon:

extensions:
    search: Surda\Search\DI\SearchExtension

Configuration

Default

search:
    templates:
        default: bootstrap4.default.latte
    autocomplete: 'on'

Usage

Presenter

use Nette\Application\UI\Presenter;
use Surda\Search\TSearch;

class ProductPresenter extends Presenter
{
    use TSearch;
    
    public function actionDefault(): void
    {
        $text = $this->search;
        ... 
    }
}

Template

{control search}
You can’t perform that action at this time.