Exemple #1
0
 /**
  * 
  */
 public function actionMissing()
 {
     $model = new MessageSource('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['MessageSource'])) {
         $model->attributes = $_GET['MessageSource'];
     }
     $model->language = TranslateModule::translator()->getLanguage();
     $this->render('missing', array('model' => $model));
 }
 /**
  * 
  */
 public function actionMissing()
 {
     if (!Yii::app()->user->isGuest) {
         $model = new MessageSource('search');
         $model->unsetAttributes();
         // clear any default values
         if (isset($_GET['MessageSource'])) {
             $model->attributes = $_GET['MessageSource'];
         }
         $model->language = TranslateModule::translator()->getLanguage();
         $this->render('missing', array('model' => $model));
     } else {
         throw new CHttpException(404, "Error Processing Request");
     }
 }
Exemple #3
0
            <div class="row buttons">
                <?php 
echo CHtml::submitButton(TranslateModule::t($action));
?>
            </div>

            <?php 
$this->endWidget();
?>

        </div><!-- form -->
    </div>
    <div class="col-lg-8">
        <?php 
$modell = new MessageSource('search');
$modell->unsetAttributes();
// clear any default values
if (isset($_GET['MessageSource'])) {
    $modell->attributes = $_GET['MessageSource'];
}
$modell->language = TranslateModule::translator()->getLanguage();
$this->renderPartial('missing', array('model' => $modell));
?>
    </div>
</div>

<script>
    $(document).ready(function () {
        $("#Message_translation").focus();
    });
</script>