CakePHP OpenSearch Plugin
Create a nice web search that integrates into modern browsers (direct search using TAB)., (*1)
See http://de.wikipedia.org/wiki/OpenSearch, (*2)
CakePHP2.x, (*3)
Installation
Composer
This is the preferred way of installing:, (*4)
"require": {
"dereuromark/cakephp-opensearch": "dev-master"
}
Manual
Copy the plugin over to your App/Plugin/ directory., (*5)
Preparation
- Create appropriate table (cake console:
cake schema create OpenSearch.OpenSearch
)
- Create an action for performing searches
- Add at least one search type (via backend
admin/open_search/addons/
for example)
Usage
Use the helper to render appropriate links in the layout:, (*6)
$this->loadHelper('OpenSearch.OpenSearch');
echo $this->OpenSearch->metaLink('web', 'my title');
for example, if you added web
as search type., (*7)
TODO
Cleanup and more features from http://www.opensearch.org/, (*8)
Dependencies
My Tools Plugin for admin backend actions (optional, you can directly use Mysql, as well)., (*9)
Licence
MIT, (*10)
Ćukasz Korecki 2009, (*11)
Mark Scherer 2012, (*12)