I have two table ( Content and Content_Detail)
this table is use for multilanguage Content.
each I will grab the content I always use this command:
$model = Content::model()->with('Content_Detail')->findAll("Content_Detail.lang = :lang", array(":lang" => Yii::app()->language))
yes this way is correct, but I feel tired if each I need to grab the content I have to use this way. this way is too long and not efisien I think.
are there are any way to use like this script above that more simple?