Thix extention is created thanks to this: http://tutorialzine.com/2010/09/google-powered-site-search-ajax-jquery/
With this widget you quickly add a searchfield to your site.
Tested with Yii 1.10 in firefox, should work on all platforms though.
Your dir-structure should now be:
siteURL : 'YOUR_SITE_URL', // Change this to your site url
Optional: Style the widget in protected/extentions/search/assets/css/google_search.css You can change everything if you want to.
Place this code in a view:
DONT FORGET You have to clean your app/assets folder after making changes to the js or css files.