Y11
(Y!!)
21
See here. If the first parameter of find() method is no string, you have to bind the params through the criteria object.
bettor
(Live Webscore)
22
Try this:
$criteria = new CDbCriteria;
$criteria->condition = "City = :city";
$criteria->params = array(':city' => $_GET['city']);
$city = City::model()->find($criteria);