EditController::translateLoadModel PHP Method

translateLoadModel() public method

If the data model is not found, an HTTP exception will be raised.
public translateLoadModel ( $id, $language )
    public function translateLoadModel($id, $language)
    {
        $model = Message::model()->findByPk(array('id' => $id, 'language' => $language));
        if ($model === null) {
            throw new CHttpException(404, 'The requested page does not exist.');
        }
        return $model;
    }