Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.php

public 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.*',
),
~~~