You are viewing revision #2 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 or see the changes made in this revision.
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"
andAdd "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 chooseYii API Search
and/orYii 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.
OpenSearch.org
I will only add to interested people that detailed information as long as perfectly written documentation on how to implement OpenSearch in your own project can be found at OpenSearch official website --> http://www.opensearch.org/Home.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.