Skip to content

Instantly share code, notes, and snippets.

@jeffwinesett
Created September 25, 2012 03:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffwinesett/3779850 to your computer and use it in GitHub Desktop.
Save jeffwinesett/3779850 to your computer and use it in GitHub Desktop.
Yii Web Dev Book, Chapter 10, section: Performing File Translation
<?php
$this->pageTitle='Nigol';
$this->breadcrumbs=array(
'Nigol',
);
?>
<h1>Nigol</h1>
<p>Slaitnederc nigol ruoy htiw mrof gniwollof eht tuo llif esaelp:</p>
<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
'id'=>'login-form',
'enableAjaxValidation'=>true,
)); ?>
<p class="note">Deriuqer era <span class="required">*</span> htiw sdleif.</p>
<div class="row">
<?php echo $form->labelEx($model,'username'); ?>
<?php echo $form->textField($model,'username'); ?>
<?php echo $form->error($model,'username'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'password'); ?>
<?php echo $form->passwordField($model,'password'); ?>
<?php echo $form->error($model,'password'); ?>
<p class="hint">
.<tt>nimda\nimda</tt> ro <tt>omed\omed</tt> htiw nigol yam uoy :tnih
</p>
</div>
<div class="row rememberMe">
<?php echo $form->checkBox($model,'rememberMe'); ?>
<?php echo $form->label($model,'rememberMe'); ?>
<?php echo $form->error($model,'rememberMe'); ?>
</div>
<div class="row buttons">
<?php echo CHtml::submitButton('Nigol'); ?>
</div>
<?php $this->endWidget(); ?>
</div><!-- form -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment