Код: Выделить всё
Products::model()->findByAttributes(array('url'=>$_GET['commodity']));
Код: Выделить всё
Products::model()->findByAttributes(array('url'=>$_GET['commodity']));
Код: Выделить всё
Products::model()->findBySql('SELECT * FROM {{table}} WHERE url="' . $_GET['commodity'] . '"');
Код: Выделить всё
Products::model()->find('url='.$_GET["commodity"].'');