Use Yii Search in Your Browser

You are viewing revision #1 of this wiki article.
This version may not be up to date with the latest version.
You may want to view the differences to the latest version.

next (#2) »

  1. FireFox
  2. Internet Explorer
  3. Chrome
  4. Opera
  5. Credits

The official Yii project site now supports OpenSearch. This means you can customize your browser's search box to enable direct search of the content in yiiframework.com. For example, by entering a Yii class name in the browser's search box, the corresponding class API page will be shown in the browser.

Below we explain how to customize your browser to enable this nice feature.

FireFox

  • Click on the dropdown button on the left of the browser search box.
  • You should see two menu items: Add "Yii API Search" and Add "Yii Site Search".
  • Click on either or both of them to integrate the Yii search into your browser.

Your FireFox browser is now equipped with Yii search. If you enter a keyword (e.g. CController) in its search box, the corresponding Yii search result page will be displayed.

Internet Explorer

  • Click on the dropdown button on the right of the browser search box.
  • Click on the menu item Add Search Providers and choose Yii API Search and/or Yii Site Search.

Your Internet Explorer is now equipped with Yii search. If you enter a keyword (e.g. CController) in its search box, the corresponding Yii search result page will be displayed.

Chrome

You don't need to do anything. To do a Yii search, you do the following steps:

  • Enter yii in the browser URL address field and press TAB key to toggle Yii API Search.
  • Keep entering the keyword you want to look for and press ENTER. The browser will show the Yii search result page.

Opera

This requires more work than the above.

  • Go to Yii class reference page.
  • Put cursor on the left column search field and in context menu select create search.
  • Enter yii to the keyword field and save.
  • Close Opera.
  • Go to Opera's profile directory.
  • Open search.ini.
  • Find your search section by searching "yii".
  • Add the following to the end of the section and save.
Suggest Protocol=JSON
Suggest URL=http://www.yiiframework.com/api/suggest/?q={SearchTerm}&json=1

Now restart Opera and try typing yii ca in your address bar.

Credits

  • GOsha for his initiative in implementing OpenSearch in yiiframework.com.
  • samdark for his finding in configuring the Yii search in Opera.
25 0
6 followers
Viewed: 64 927 times
Version: Unknown (update)
Category: Tips
Written by: qiang
Last updated by: CeBe
Created on: Nov 14, 2010
Last updated: 6 years ago
Update Article

Revisions

View all history

Related Articles