Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jorgebg/yii-esearch
ESearch is a Yii Framework extension that provides an action and some default views for search and order by relevance in MySQL without FULLTEXT.
https://github.com/jorgebg/yii-esearch
Last synced: about 2 months ago
JSON representation
ESearch is a Yii Framework extension that provides an action and some default views for search and order by relevance in MySQL without FULLTEXT.
- Host: GitHub
- URL: https://github.com/jorgebg/yii-esearch
- Owner: jorgebg
- Created: 2011-06-27T01:08:54.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-05-06T11:17:10.000Z (over 12 years ago)
- Last Synced: 2024-04-14T03:59:26.376Z (9 months ago)
- Language: PHP
- Homepage: http://www.yiiframework.com/extension/esearch/
- Size: 121 KB
- Stars: 12
- Watchers: 8
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Introduction
------------
ESearch provides an action and some default views for search and order by relevance in MySQL without FULLTEXT.[![Flattr this git repo](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=jorgebg&url=https://github.com/jorgebg/yii-esearch&title=yii-esearch&language=en_GB&tags=github&category=software)
Documentation
-------------###Requirements
* Yii 1.0 or above
* MySQL 5.0 or above
* PHP 5.2###Installation
* Extract the release file under `protected/extensions/esearch`###Usage
~~~
[php]
//controllers/SiteController.phppublic function actions(){
return array(
// ...
'search'=>array(
'class'=>'ext.esearch.SearchAction',
'model'=>'Post',
'attributes'=>array('title', 'tags', 'content'),
)
);
}~~~
~~~
[php]
//views/layout/main.php
$this->widget('ext.search.SearchBoxPortlet');
//or
SearchAction::renderInputBox();
//or
$this->renderPartial('extensions/esearch/views/inputBox.php');
~~~~~~
[php]
'import'=>array(
// ...
'ext.esearch.*',
),
~~~