dereuromark / cakephp-opensearch
A CakePHP plugin for using OpenSearch
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 1
Open Issues: 0
Type:cakephp-plugin
Requires
- php: >=5.3
- composer/installers: *
- dereuromark/tools-cakephp: *
This package is auto-updated.
Last update: 2024-11-13 11:12:37 UTC
README
Create a nice web search that integrates into modern browsers (direct search using TAB).
See http://de.wikipedia.org/wiki/OpenSearch
CakePHP2.x
Installation
Composer
This is the preferred way of installing:
"require": {
"dereuromark/cakephp-opensearch": "dev-master"
}
Manual
Copy the plugin over to your App/Plugin/ directory.
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:
$this->loadHelper('OpenSearch.OpenSearch'); echo $this->OpenSearch->metaLink('web', 'my title');
for example, if you added web
as search type.
TODO
Cleanup and more features from http://www.opensearch.org/
Dependencies
My Tools Plugin for admin backend actions (optional, you can directly use Mysql, as well).
Licence
MIT
Łukasz Korecki 2009
Mark Scherer 2012