PHP Method Yii::T Code Examples

This page contains top rated real world PHP examples of method Yii::T extracted from open source projects. You can rate examples to help us improve the quality of examples
Example #1
Show file File: guest.php Project: aruna470/sdim
0
foreach (Yii::$app->session->getAllFlashes() as $key => $message) {
    if ($key == 'error') {
        $key = 'danger';
    }
    echo '<div class="alert alert-' . $key . '">' . $message . '</div>';
}
?>
			
			</div>
        </div>
    </div>

    <footer class="footer">
        <div class="container">
			<p style="text-align:center">&copy; <?php 
echo Yii::T('app', 'GaggleTag Ltd.');
?>
 <?php 
echo date('Y');
?>
</p>
        </div>
    </footer>

<?php 
$this->endBody();
?>
</body>
</html>
<?php 
$this->endPage();
Example #2
Show file File: cropImg.php Project: baobkath/lenguage_center
0
    <div class="md01sHead">
        <h3><?php 
echo Yii::t('frontend', 'Upload image');
?>
</h3>
    </div>
    <div class="md01sContent clearfix">
        <div class="cropImgBox left">
            <div class="imageBox">
                <div class="thumbBox"></div>
                <div class="spinner" style="display: none">Loading...</div>
            </div>
            <div class="action">
                <input type="file" id="file" style="float:left; width: 250px" class="filestyle" data-buttonText="Chọn ảnh" data-classButton="btn btn-primary">
                <input type="button" id="btnCrop" value="<?php 
echo Yii::T('frontend', 'Crop image');
?>
" style="float: right">
                <input type="button" id="btnZoomIn" value="+" style="float: right">
                <input type="button" id="btnZoomOut" value="-" style="float: right">
            </div>
            <div style="display:none;" id="userid"><?php 
echo Yii::$app->user->id;
?>
</div>
        </div>
        <div class="cropImgBox left">
            <!-- div holder img after crop -->
            <div class="cropped"><img src="/images/avatar_no_image.gif" alt="Avatar"></div>
            <!-- div holder img after crop -->
            <div style="clear:both;">