Tbtypeahead Bind Model

Hello. Does anyone can tell me how to bind model with TbTypeAhead source? I tried sth like this but it doesn’t work:




<?php $this->widget('bootstrap.widgets.TbTypeahead', array(

    'name'=>'typeahead',    

    'options'=>array(

        'source'=>$this->createUrl('request/suggest'),

        'items'=>4,

        'matcher'=>"js:function(item) {

            return ~item.toLowerCase().indexOf(this.query.toLowerCase());

        }",

    ),

)); ?>



Thanks for help

Greetings

Tom