Like Operator In Select Command Don't Work. Why?

Hi, this is part of my code:

public function actionSee($t)


   $c = Post::model()->count('title like :t', array(':t'=>"%$t"));

   // other stuff


and in configuration file I put this:


but the count() reterned 0. Why?

What is the value of $t and what should it match? You only have a wildcard at the beginning.

The value of $t Initialized by URL request. for example:

ti value sent to the method parameter ($t). I wold like make SQL Query like this:

select count(*) from post where title like '%v'