Yii Api Search

Hello friends,

I’m learning Yii. And want to create an API following the example

http://www.yiiframework.com/wiki/175/how-to-create-a-rest-api/

Some of you can point me in the correct direction to allow the api search in the posts?. I mean, I need that in an api call the user can search throught the post, and the api then returnos those results.

Kind regards!