I study Yii, here in the controller there is such a terrible thing:
$query_for_author = "delete from `author` where `id` = :author"; $command = Yii::app()->db->createCommand($query_for_author); $command->execute(array('author' => $author_for_delete['author_id'])); Or here:
Topic::model()->findBySql('SELECT * FROM topic WHERE title=:param', array(':param' => $find_topic)); As far as I know, this should not be in it, such as a request, etc. Received the data - send it all. How do you, comrades developers, to this concern? Or does this happen to you too?