ESearch is a Yii Framework extension that provides an action and some default views for search and order by relevance in MySQL without FULLTEXT.
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
stopwords
views
README.md
SearchAction.php
SearchBoxPortlet.php

README.md

Introduction

ESearch provides an action and some default views for search and order by relevance in MySQL without FULLTEXT.

Flattr this git repo

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