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 expression
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 expression
You don't need CDbExpression here. Using $criteria->select='list of columns, NOW() as tnow' should be fine.
Quote
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!