本文整理匯總了PHP中Yum::p方法的典型用法代碼示例。如果您正苦於以下問題:PHP Yum::p方法的具體用法?PHP Yum::p怎麽用?PHP Yum::p使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Yum
的用法示例。
在下文中一共展示了Yum::p方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
<?php
$this->title = Yum::t('{role}', array('{role}' => $model->title));
$this->breadcrumbs = array(Yum::t('Roles') => array('index'), Yum::t('View'), $model->title);
echo $model->description;
?>
<br />
<?php
echo Yum::p('This users have been assigned to this role');
?>
<?php
if ($assignedUsers) {
}
$this->widget('zii.widgets.grid.CGridView', array('dataProvider' => $assignedUsers, 'columns' => array('username', 'status')));
?>
<br />
<?php
if (Yum::hasModule('membership')) {
echo Yum::p('This users have a ordered memberships of this role');
if ($activeMemberships) {
$this->widget('zii.widgets.grid.CGridView', array('dataProvider' => $activeMemberships, 'columns' => array('id', 'user.username', array('name' => 'order_date', 'value' => 'date("Y. m. d G:i:s", $data->order_date)'), array('name' => 'end_date', 'value' => 'date("Y. m. d G:i:s", $data->end_date)'), array('name' => 'payment_date', 'value' => 'date("Y. m. d G:i:s", $data->payment_date)'), 'role.price', 'payment.title')));
}
}
if (Yii::app()->user->isAdmin()) {
echo CHtml::Button(Yum::t('Update role'), array('submit' => array('role/update', 'id' => $model->id)));
}