当前位置: 首页>>代码示例>>PHP>>正文


PHP YII::t方法代码示例

本文整理汇总了PHP中YII::t方法的典型用法代码示例。如果您正苦于以下问题:PHP YII::t方法的具体用法?PHP YII::t怎么用?PHP YII::t使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在YII的用法示例。


在下文中一共展示了YII::t方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: attributeLabels

 /**
  * @return array customized attribute labels (name=>label)
  */
 public function attributeLabels()
 {
     return array('id' => YII::t('commercial', 'Commercial'), 'name' => YII::t('commercial', 'Name'), 'yeshuv_id' => YII::t('commercial', 'Yeshuv'), 'file_name' => YII::t('commercial', 'File Name'), 'yeshuv.name_heb' => YII::t('screen', 'Yeshuv'), 'create_time' => YII::t('default', 'Create Time'), 'create_user_id' => YII::t('default', 'Create User'), 'update_time' => YII::t('default', 'Update Time'), 'update_user_id' => YII::t('default', 'Update User'));
 }
开发者ID:nurielmeni,项目名称:nymedia,代码行数:7,代码来源:Commercial.php

示例2: array

<?php

/* @var $this AdController */
/* @var $model Ad */
$this->breadcrumbs = array(YII::t('ad', 'Ads') => array('screen/' . $this->getScreen()->id), YII::t('default', 'Create'));
?>

<h1><?php 
echo YII::t('ad', 'Create Ad for Screen:') . ' ' . $this->getScreen()->name;
?>
</h1>

<?php 
$this->renderPartial('_form', array('model' => $model));
开发者ID:nurielmeni,项目名称:nymedia,代码行数:14,代码来源:create.php

示例3: array

echo $form->errorSummary($model);
?>
    
    <?php 
echo $form->textFieldGroup($model, 'name', array('wrapperHtmlOptions' => array('class' => 'col-sm-5')));
?>

    <?php 
echo $form->dropDownListGroup($model, 'yeshuv_id', array('wrapperHtmlOptions' => array('class' => 'col-sm-5'), 'widgetOptions' => array('data' => Yeshuv::model()->getYeshuvOptions(), 'htmlOptions' => array())));
?>
    

    <?php 
echo $form->textFieldGroup($model, 'file_name', array('wrapperHtmlOptions' => array('class' => 'col-sm-5'), 'widgetOptions' => array('htmlOptions' => array('onClick' => 'js:openKCFinder(this)', 'style' => 'direction:ltr', 'readonly' => true, 'class' => 'default-cursor'))));
?>
</fieldset>        

<div class="form-actions">
        <?php 
$this->widget('booster.widgets.TbButton', array('buttonType' => 'submit', 'context' => 'primary', 'label' => YII::t('default', 'Submit')));
?>
        <?php 
$this->widget('booster.widgets.TbButton', array('buttonType' => 'reset', 'label' => YII::t('default', 'Reset')));
?>
</div>

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

</div><!-- form -->
开发者ID:nurielmeni,项目名称:nymedia,代码行数:31,代码来源:_form.php

示例4: isset

$this->head();
?>
</head>
<body>
<?php 
$this->beginBody();
?>

<div class="wrap">
    <?php 
NavBar::begin(['brandLabel' => YII::t('backend', 'Magin Gam'), 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar-inverse navbar-fixed-top']]);
$menuItems = [['label' => YII::t('backend', 'Home'), 'url' => ['/site/index']]];
if (Yii::$app->user->isGuest) {
    $menuItems[] = ['label' => YII::t('backend', 'Login'), 'url' => ['/user/security/login']];
} else {
    $menuItems[] = ['label' => YII::t('backend', 'Logout (') . Yii::$app->user->identity->username . ')', 'url' => ['/user/security/logout'], 'linkOptions' => ['data-method' => 'post']];
}
echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => $menuItems]);
NavBar::end();
?>

    <div class="container">
        <?php 
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
        <?php 
echo Alert::widget();
?>
        <?php 
echo $content;
?>
开发者ID:baobkath,项目名称:lenguage_center,代码行数:31,代码来源:main.php

示例5: array

        <?php 
echo $form->error($model, 'message');
?>
    </div>
    <?php 
echo $form->hiddenField($model, 'order');
?>
    <?php 
echo $form->hiddenField($model, 'recipient', array('id' => 'recipient'));
?>
    <?php 
if (User::model()->isAuthor()) {
    ?>
    	<div class="row">
    	     <p><?php 
    echo YII::t('project', 'Work price:');
    ?>
</p>
    	    <?php 
    echo $form->textField($model, 'cost');
    ?>
    	    <?php 
    echo $form->error($model, 'cost');
    ?>
    	</div>
    <?php 
}
?>
    <div class="row buttons">
        <p><?php 
echo Yii::t('site', 'Additionally send:');
开发者ID:kibercoder,项目名称:dipstart-development,代码行数:31,代码来源:index.php

示例6: array

<?php

/* @var $this AdController */
/* @var $model Ad */
$this->breadcrumbs = array(YII::t('ad', 'Ads') => array('screen/' . $this->getScreen()->id), $model->name);
$this->menu = array(array('label' => YII::t('ad', 'Create Ad'), 'url' => array('create', 'screen_id' => $this->getScreen()->id)), array('label' => YII::t('ad', 'Update Ad'), 'url' => array('update', 'id' => $model->id, 'screen_id' => $this->getScreen()->id)), array('label' => YII::t('ad', 'Delete Ad'), 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id, 'screen_id' => $this->getScreen()->id), 'confirm' => Yii::t('default', 'Are you sure you want to delete this item?'))));
?>

<h1><?php 
echo YII::t('ad', 'View Ad') . ' #' . $model->id;
?>
</h1>

<?php 
$days = $model->sun ? $model->getAttributeLabel('sun') . ', ' : ' ';
$days .= $model->mon ? $model->getAttributeLabel('mon') . ', ' : ' ';
$days .= $model->tue ? $model->getAttributeLabel('tue') . ', ' : ' ';
$days .= $model->wed ? $model->getAttributeLabel('wed') . ', ' : ' ';
$days .= $model->thu ? $model->getAttributeLabel('thu') . ', ' : ' ';
$days .= $model->fri ? $model->getAttributeLabel('fri') . ', ' : ' ';
$days .= $model->sat ? $model->getAttributeLabel('sat') . ', ' : ' ';
$days = trim($days, "\t\n\r, ");
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('name', 'start', 'expire', array('name' => Yii::t('ad', 'Days'), 'type' => 'raw', 'value' => $days), 'duration', array('name' => $model->getAttributeLabel('html'), 'type' => 'html', 'value' => CHtml::decode($model->html), 'cssClass' => 'detailedViewWidth'))));
开发者ID:nurielmeni,项目名称:nymedia,代码行数:23,代码来源:view.php

示例7: array

$this->endWidget();
?>
		<div class="chtpl0-form">
			<textarea></textarea>
			<div class="chtpl0-subm">
				<h5><?php 
echo ProjectModule::t('Send message');
?>
</h5>
				<br>
				<button class="chtpl0-submit1"><?php 
echo ProjectModule::t('to author');
?>
</button>
				<button class="chtpl0-submit2"><?php 
echo YII::t('site', 'For Customer');
?>
</button><?php 
echo ProjectModule::t('to сustomer');
?>
			</div>
		</div>
        <?php 
$this->widget('YiiChatWidget', array('chat_id' => $model->id, 'executor' => $model->executor, 'identity' => Yii::app()->user->id, 'selector' => '#chatWindow', 'minPostLen' => 1, 'maxPostLen' => 5000, 'model' => new ChatHandler(), 'data' => 'any data', 'onSuccess' => new CJavaScriptExpression("function(code, text, post_id){   }"), 'onError' => new CJavaScriptExpression("function(errorcode, info){  }")));
?>
    </div>
</div>

<div class="col-xs-12 payment-block">
    <?php 
$this->widget('application.modules.project.widgets.payment.PaymentWidget', array('projectId' => $model->id));
开发者ID:kibercoder,项目名称:dipstart-development,代码行数:31,代码来源:_formUpdateManager.php

示例8: count

echo '</table>';
// body
echo '<span><a href="#" onclick="addSalary();return false;"><i class="icon-plus"></i>New salary</a></span>';
echo '</div></div>';
// end body
echo '</div>';
// end accordion-group
/** END CONTACT **/
?>
                
         <?php 
echo '<div class="accordion-group">';
// heading
echo '<div class="accordion-heading">';
echo '<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#form-new-customer-basic-info-collapse">';
echo YII::t('lang', 'Benefits');
echo '</a></div>';
// end heading
echo '<div id="form-new-customer-basic-info-collapse" class="accordion-body collapse in">
      		<div class="accordion-inner">';
echo '<table id="table_benefits" class="items table table-bordered">';
echo '<thead><tr>';
echo '<th></th>';
echo '<th>Benefits Name</th>';
echo '<th>Benefits Amount</th>';
echo '</tr></thead>';
echo '<tbody>';
$total_benefit = 0;
if (count($benefit) > 0) {
    $tax_id = count($benefit);
    $i = 1;
开发者ID:heartshare,项目名称:linxbooks,代码行数:31,代码来源:_form.php

示例9: array

<?php

/* @var $this CommercialController */
/* @var $dataProvider CActiveDataProvider */
$this->breadcrumbs = array(YII::t('commercial', 'Commercials'));
$this->menu = array(array('label' => YII::t('commercial', 'Create Commercial Area'), 'url' => array('create')), array('label' => YII::t('commercial', 'Manage Commercial Area'), 'url' => array('admin')));
?>

<h1><?php 
echo YII::t('commercial', 'Commercials');
?>
</h1>

<?php 
$this->widget('zii.widgets.CListView', array('dataProvider' => $dataProvider, 'itemView' => '_view'));
开发者ID:nurielmeni,项目名称:nymedia,代码行数:15,代码来源:index.php

示例10: mkdir

    }
} else {
    mkdir($path);
}
Yii::app()->getClientScript()->registerCssFile(Yii::app()->theme->baseUrl . '/css/custom.css');
if (User::model()->isCustomer() && (!$order->is_active || !$moderated)) {
    echo '<div class="zakaz-info-header-customer" ><font color="green">' . YII::t('site', 'AfterModerate') . '.</font></div>';
    echo '<div class="zakaz-info-header-customer-empty" >&nbsp;</div>';
}
?>
<div class="container">
    <div class="row r">
		<?php 
if (User::model()->isExecutor($order->id)) {
    // Если назначен исполнитель, и именнно он смотрит
    echo '<div class="zakaz-info-header" ><font color="green">' . YII::t('site', 'YouAreExecutor') . '</font></div>';
    echo '<div class="zakaz-info-header-customer-empty">&nbsp;</div>';
}
?>
        <div class="col-xs-12 info-block" style="margin-bottom: 15px;">
            <div class="panel-group" id="info-block">
                <div class="panel panel-default">
                    <div class="panel-heading panel-heading-white">
                        <h4 class="panel-title">
                            <a data-toggle="collapse" data-parent="#info-block" href="#infoZakaz">
                                <?php 
echo ProjectModule::t('Ordering Information') . ' №' . $order->id;
?>
                            </a>
                        </h4>
                    </div>
开发者ID:keltstr,项目名称:dipstart-development,代码行数:31,代码来源:index.php

示例11: array

<?php

/* @var $this AdController */
/* @var $model Ad */
$this->breadcrumbs = array(YII::t('ad', 'Ads') => array('screen/' . $this->getScreen()->id), $model->name => array('view', 'id' => $model->id, 'screen_id' => $this->getScreen()->id), YII::t('default', 'Update'));
$this->menu = array(array('label' => YII::t('ad', 'Create new Ad'), 'url' => array('create', 'screen_id' => $this->getScreen()->id)), array('label' => YII::t('ad', 'Delete Ad'), 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id, 'screen_id' => $this->getScreen()->id), 'confirm' => Yii::t('default', 'Are you sure you want to delete this item?'))), array('label' => YII::t('ad', 'Manage Ad'), 'url' => array('admin', 'screen_id' => $this->getScreen()->id), 'visible' => Yii::app()->user->checkAccess('AdAdministrating')));
?>
<div class="span-22">
<h1><?php 
echo YII::t('ad', 'Update Ad') . ' ' . $model->id;
?>
</h1>

<?php 
$this->renderPartial('_form', array('model' => $model));
?>
</div>
开发者ID:nurielmeni,项目名称:nymedia,代码行数:17,代码来源:update.php

示例12: function

											 te = val;
											 err=0;
										 }
			       break;
			       case 'input_email' :  $this.parent().removeClass('has-success').addClass('has-error');
				                         err=1;
			                             if(/^([a-z0-9_-]+\.)*[a-z0-9_-]+@[a-z0-9_-]+(\.[a-z0-9_-]+)*\.[a-z]{2,8}$/.test(val)){
										    $this.parent().removeClass('has-error').addClass('has-success');
											te = val;
											err=0;
										 }
			       break;
		        }
				////////////
				
			})
			console.log(err + ' ' +te);
			if(err==0){
				$.each($(".sends"), function(i,v){
					var name = $(v).attr('name');
					$(v).attr('name', name + '[]');
				})
			  $("#form-thankyou").submit();
			}
			else{
				
				alert('<?=YII::t("api","fields_required");?>')
			}
	})
})
</script>
开发者ID:emisdb,项目名称:cherry,代码行数:31,代码来源:thankyou.php

示例13:

                    document.getElementById("mostview").style.marginTop = document.getElementById("advertise").style.height;
                    //alert(width);
                    
                }else{
                    document.getElementById("advertise").style.position = 'static';
                    document.getElementById("advertise").style.width = '100%';
                    document.getElementById("advertise").style.marginTop = '20px';
                    document.getElementById("mostview").style.marginTop = '10px';
                    document.getElementById("advertise1").style.display = 'none';
                }});
          
                });
            </script>
            <div class="box" id="mostview">
                <div style='margin-top: 20px; height: 30px; font-size: 20px; color: #ff0084; border-bottom: #245580 solid 2px'><?php 
echo YII::t('frontend', 'Popular');
?>
</div>
                <div class='box-product' style='margin: 0' >
                    <?php 
echo mostView::widget();
?>
                </div>
            </div>
            <div id="box-show">
                <div class='title'><?php 
echo Yii::t('frontend', 'Get exercise free');
?>
 <a><span onclick="hideBox()" class="glyphicon glyphicon-chevron-down pull-right" style="margin-top: 4px"  aria-hidden="true"></span></a></div>
                <div style="padding: 20px">
                    <?php 
开发者ID:baobkath,项目名称:lenguage_center,代码行数:31,代码来源:layout-frontend.php

示例14: array

<?php

/* @var $this CommercialController */
/* @var $model Commercial */
$this->breadcrumbs = array(YII::t('commercial', 'Commercials') => array('index'), YII::t('default', 'Manage'));
$this->menu = array(array('label' => YII::t('commercial', 'List Commercial Area'), 'url' => array('index')), array('label' => YII::t('commercial', 'Create Commercial Area'), 'url' => array('create')));
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$('#commercial-grid').yiiGridView('update', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<h1><?php 
echo YII::t('commercial', 'Manage Commercials');
?>
</h1>

<p>
You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>&lt;&gt;</b>
or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
</p>

<?php 
echo CHtml::link(YII::t('default', 'Advanced Search'), '#', array('class' => 'search-button'));
?>
<div class="search-form" style="display:none">
<?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<?php 
$this->widget('booster.widgets.TbExtendedGridView', array('type' => 'striped', 'id' => 'commercial-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array('id', 'name', 'yeshuv_id', 'file_name', array('class' => 'CButtonColumn'))));
开发者ID:nurielmeni,项目名称:nymedia,代码行数:30,代码来源:admin.php

示例15: attributeLabels

 /**
  * @return array customized attribute labels (name=>label)
  */
 public function attributeLabels()
 {
     return array('id' => 'ID', 'name' => YII::t('ad', 'Name'), 'sun' => YII::t('ad', 'Sun'), 'mon' => YII::t('ad', 'Mon'), 'tue' => YII::t('ad', 'Tue'), 'wed' => YII::t('ad', 'Wed'), 'thu' => YII::t('ad', 'Thu'), 'fri' => YII::t('ad', 'Fri'), 'sat' => YII::t('ad', 'Sat'), 'html' => YII::t('ad', 'html'), 'start' => YII::t('ad', 'Start'), 'expire' => YII::t('ad', 'Expire'), 'duration' => YII::t('ad', 'Duration'), 'create_time' => YII::t('default', 'Create Time'), 'create_user_id' => YII::t('default', 'Create User'), 'update_time' => YII::t('default', 'Update Time'), 'update_user_id' => YII::t('default', 'Update User'));
 }
开发者ID:nurielmeni,项目名称:nymedia,代码行数:7,代码来源:Ad.php


注:本文中的YII::t方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。