Skip to content

jorgebg/yii-esearch

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

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

About

ESearch is a Yii Framework extension that provides an action and some default views for search and order by relevance in MySQL without FULLTEXT.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages