Skip to content

Instantly share code, notes, and snippets.

@DrMabuse23
Created April 30, 2013 08:51
Show Gist options
  • Save DrMabuse23/5487476 to your computer and use it in GitHub Desktop.
Save DrMabuse23/5487476 to your computer and use it in GitHub Desktop.
//WORKS
$criteria = new CDbCriteria();
$criteria->addBetweenCondition('`create`',$this->getLastWeek(),date('Y-m-d H:i:s'));
//DOESNT WORKS look at create without `
$criteria = new CDbCriteria();
$criteria->addBetweenCondition('create',$this->getLastWeek(),date('Y-m-d H:i:s'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment