Showing posts from April, 2020

PHP Yii Framwork Autocomplete Widget Code

As you know, Yii 1.1 is deprecated. However, There is some old sites that I am seeing still using Yii 1.1 framework. Many years ago I used this autocomplete code in Yii 1.1 framework. Today, I found it in my old work notes and I decided to share it in to the web. It was working well on Yii 1.1 version but, I did not test it in newer versions of Yii Framework. But, it is worth to try it. Because it is a Yii Framework widget and It can work in your project. I hope, It would be usefull. Enjoy it :) $this->widget('zii.widgets.jui.CJuiAutoComplete',array( 'name'=>'s', 'source'=>new CJavaScriptExpression( 'function(request,response) { var tags = '.CJavaScript::encode($zipcodeList).'; var term = $.ui.autocomplete.escapeRegex(request.term); var matcher = new RegExp("^&quo