echo query

Hello

i am new with yii. can any one help me how i will echo query.

Like if i am using findAll, findByPk, findByAttributes function. many times i want to see its query but unable to find way to echo these query.

Thanks

Here’s the answer

Hi Thanks for your reply :) . But suppose if i want to echo specific query then what will i have to do. Like in core php if we want to echo any specific query we just use echo to show that query.

/* Moved to General Discussion for Yii 1.1.x */