本文整理汇总了PHP中Users::url方法的典型用法代码示例。如果您正苦于以下问题:PHP Users::url方法的具体用法?PHP Users::url怎么用?PHP Users::url使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Users
的用法示例。
在下文中一共展示了Users::url方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: if
<?php $this->pageTitle=Yii::app()->name . ' - '.Users::t("Change Password");
$this->breadcrumbs=array(
Users::t("Profile") => Users::url('profile/cabinet'),
Users::t("Change password"),
);
?>
<h2><?php echo Users::t("Change password"); ?></h2>
<?php if(Y::isGuest()) {$this->widget('GuestMenu');}
else {$this->widget('UserMenu');}
?>
<div class="form">
<?php $form=$this->beginWidget('UActiveForm', array(
'id'=>'changepassword-form',
'enableAjaxValidation'=>true,
)); ?>
<p class="note"><?php echo Users::t('Fields with <span class="required">*</span> are required.'); ?></p>
<?php echo CHtml::errorSummary($model); ?>
<div class="row">
<?php echo $form->labelEx($model,'password'); ?>
<?php echo $form->passwordField($model,'password'); ?>
<?php echo $form->error($model,'password'); ?>
<p class="hint">
<?php echo Users::t("Minimal password length 4 symbols."); ?>
</p>
</div>
<div class="row">
示例2: array
<?php
$this->title = Yum::t('Confirm deletion');
$this->breadcrumbs = array(
Yum::t('Users') => Users::url('admin'),
Yum::t('Delete account'));
printf('<h2>%s</h2>', Yum::t('Are you really sure you want to delete your Account?'));
printf('<p>%s</p>', Yum::t('Please enter your password to confirm deletion:'));
echo CHtml::form(array('delete'));
echo CHtml::passwordField('confirmPassword') . "<br />";
echo CHtml::linkButton(Yum::t('Cancel deletion'), array(
'submit' => array('profile')));
echo CHtml::submitButton(Yum::t('Confirm deletion'));
echo CHtml::endForm();
?>
示例3: array
<?php
$this->breadcrumbs=array(
Users::t('Profile Fields')=>Users::url('profileField/admin'),
Users::t('Create Profile Field'),
);
?>
<h1><?php echo Users::t('Create Profile Field'); ?></h1>
<?php echo $this->renderPartial('_menu',array(
'list'=> array(),
)); ?>
<?php echo $this->renderPartial('_form', array('model'=>$model)); ?>
示例4:
<ul class="actions">
<?php
if(UserModule::isAdmin()) {
?>
<li><?php echo CHtml::link(Users::t('Manage User'),array('/user/admin')); ?></li>
<?php
}
?>
<li><?php echo CHtml::link(Users::t('Profile'),Y::module()->profileUrl); ?></li>
<li><?php echo CHtml::link(Users::t('Edit'),Y::module()->editProfileUrl); ?></li>
<li><?php echo CHtml::link(Users::t('Change password'),Y::module()->changePassUrl); ?></li>
<li><?php echo CHtml::link(Users::t('Logout'),Y::module()->logoutUrl); ?></li>
<li><?php echo CHtml::link(Yii::t('interface', 'CreatePost'), Users::url("posts/create",array('lang' => Yii::app()->language, 'add_type'=>'post'))); ?></li>
<li><?php echo CHtml::link(Yii::t('interface', 'CreateQuestion'),Users::url("posts/create",array('lang' => Yii::app()->language, 'add_type'=>'question'))); ?></li>
</ul>
示例5:
<ul class="actions">
<li><?php echo CHtml::link(Users::t('Manage User'),Users::url('admin')); ?></li>
<li><?php echo CHtml::link(Users::t('Manage Profile Field'),Users::url('profileField/admin')); ?></li>
<?php
if (isset($list)) {
foreach ($list as $item)
echo "<li>".$item."</li>";
}
?>
</ul><!-- actions -->
示例6: Users
<?php
/**
* Created by Kent M. Patrick
* Project: BPU
* Company: Fingerprints Ltd
* Date: 21/09/2016
* Time: 9:58 AM
*/
require_once 'header.php';
$db->admin_confirm();
$user = new Users();
$form = new Forms();
$user->url();
if (isset($_POST['submit'])) {
switch ($_GET['f']) {
case 'create':
$user->set_data();
$user->check_data();
if (isset($user->error_count)) {
echo "<div class='row'>";
echo "<div class='col-xs-6'>";
$html->title("user management", "create user", "left");
echo "</div>";
echo "<div class='col-xs-6 text-right'>";
$html->button("users.php?f=manage", "back");
$form->button("create", "md", "create");
echo "</div>";
echo "</div>";
$user->user_id = $_GET['f'];
$user->form("create");
示例7: array
<?php
$this->breadcrumbs=array(
Users::t('Profile Fields')=>Users::url('profileField/admin'),
Users::t('Manage Profile Field'),
);
?>
<h1><?php echo Users::t('Manage Profile Fields'); ?></h1>
<?php echo $this->renderPartial('_menu', array(
'list'=> array(
CHtml::link(Users::t('Create Profile Field'),Users::url('profileField/create')),
),
));
?>
<?php $this->widget('zii.widgets.grid.CGridView', array(
'dataProvider'=>$dataProvider,
'cssFile'=>'/css/grid/styles.css',
'columns'=>array(
'id',
'varname',
array(
'name'=>'title',
'value'=>'Users::t($data->title)',
),
'field_type',
'field_size',
//'field_size_min',
array(
'name'=>'required',
'value'=>'ProfileField::itemAlias("required",$data->required)',
示例8: array
<?php
$this->breadcrumbs=array(
Users::t('Users')=>Users::url('user/admin'),
$model->username,
);
?>
<h1><?php echo Users::t('View User').' "'.$model->username.'"'; ?></h1>
<?php
echo $this->renderPartial('_menu', array(
'list'=> array(
CHtml::link(Users::t('Create User'),Users::url('admin/create')),
CHtml::link(Users::t('Update User'),Users::url('admin/update',array('id'=>$model->id))),
CHtml::linkButton(Users::t('Delete User'),array('submit'=>array('delete','id'=>$model->id),'confirm'=>Users::t('Are you sure to delete this item?'))),
),
));
$attributes = array(
'id',
'username',
'password',
'email',
'activkey',
array(
'name' => 'createtime',
'value' => date("d.m.Y H:i:s",$model->createtime),
),
array(
'name' => 'lastvisit',
'value' => ($model->lastvisit?date("d.m.Y H:i:s",$model->lastvisit):Users::t("Not visited")),
),
示例9: array
<?php
$this->breadcrumbs=array(
Users::t('Profile Fields')=>Users::url('profileField/admin'),
$model->title=>array('view','id'=>$model->id),
Users::t('Update Profile Field'),
);
?>
<h1><?php echo Users::t('Update ProfileField ').$model->id; ?></h1>
<?php echo $this->renderPartial('_menu', array(
'list'=> array(
CHtml::link(Users::t('Create Profile Field'),Users::url('profileField/create')),
CHtml::link(Users::t('View Profile Field'),Users::url('profileField/view',array('id'=>$model->id))),
),
));
?>
<?php echo $this->renderPartial('_form', array('model'=>$model)); ?>
示例10: if
<?php $this->pageTitle=Yii::app()->name . ' - '.Users::t("Restore");
$this->breadcrumbs=array(
Users::t("Login") => Users::url('login'),
Users::t("Restore"),
);
?>
<h1><?php echo Users::t("Restore"); ?></h1>
<?php if(Y::hasFlash('recoveryMessage')): ?>
<div class="success">
<?php echo Y::flash('recoveryMessage'); ?>
</div>
<?php else: ?>
<div class="form">
<?php echo CHtml::beginForm(); ?>
<?php echo CHtml::errorSummary($form); ?>
<div class="row">
<?php echo CHtml::activeLabel($form,'login_or_email'); ?>
<?php echo CHtml::activeTextField($form,'login_or_email') ?>
<p class="hint"><?php echo Users::t("Please enter your login or email addres."); ?></p>
</div>
<div class="row submit">
<?php echo CHtml::submitButton(Users::t("Restore")); ?>
</div>
<?php echo CHtml::endForm(); ?>
示例11: getUrl
public function getUrl()
{
return Users::url('profile', array('id'=>$this->id));
}
示例12: array
<?php
$this->breadcrumbs=array(
Users::t('Users')=>Users::url('admin'),
Users::t('Manage User'),
);
?>
<h1><?php echo Users::t("Manage Users"); ?></h1>
<?php echo $this->renderPartial('_menu', array(
'list'=> array(
CHtml::link(Users::t('Create User'),Users::url('admin/create')),
),
));
?>
<?php $this->renderPartial('admingrid',
array('model'=>$model)
)?>
示例13: createUrls
private function createUrls($base_urls)
{
foreach ($base_urls as $var=>$url) {
$this->{$var} = Users::url($url);
}
}