additional column ( 'NOW() as tnow' ) in criteria

hi! i have code:

problem in $criteria->select - i can't assign "NOW()" to name "tnow" or other name. i get exception. i have commented what i tried…

p.S.  "NOW() as tnow" is just example. i want to put here some bit more complicted exp​ression

You don't need CDbExp​ression here. Using $criteria->select='list of columns, NOW() as tnow' should be fine.

Quote

You don't need CDbExp​ression here. Using $criteria->select='list of columns, NOW() as tnow' should be fine.

look at 3rd row, is it right?

Problem is i can not get variable like in view

Declare a public member named as 'tnow'.

thanks!  ;)