本文整理汇总了PHP中FRoute::url方法的典型用法代码示例。如果您正苦于以下问题:PHP FRoute::url方法的具体用法?PHP FRoute::url怎么用?PHP FRoute::url使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FRoute
的用法示例。
在下文中一共展示了FRoute::url方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<td class="center">
<?php
echo $this->html('grid.featured', $event, 'events', 'featured');
?>
</td>
<td class="center">
<?php
echo $this->html('grid.published', $event, 'events', 'state', array(2 => 'approve'), array(2 => 'COM_EASYSOCIAL_GRID_TOOLTIP_APPROVE_ITEM'), array(2 => 'pending'));
?>
</td>
<td class="center">
<a href="<?php
echo FRoute::url(array('view' => 'users', 'layout' => 'form', 'id' => $event->getCreator()->id));
?>
" target="_blank"><?php
echo $event->getCreator()->getName();
?>
</a>
</td>
<td class="center">
<?php
echo $event->getTotalGuests();
?>
</td>
<?php
}
?>
示例2: restoreTrash
public function restoreTrash($tpl = null)
{
FD::info()->set($this->getMessage());
return $this->redirect(FRoute::url(array('view' => 'stream')));
}
示例3: form
public function form()
{
return $this->app->redirect(FRoute::url(array('view' => 'regions', 'layout' => 'form')));
}
示例4: move
public function move()
{
FD::info()->set($this->getMessage());
$parent = $this->input->getInt('parent');
$layout = $this->input->getString('layout');
$url = array('view' => 'regions');
if (!empty($layout)) {
$url['layout'] = $layout;
}
if (!empty($parent)) {
$url['parent'] = $parent;
}
return $this->redirect(FRoute::url($url));
}
示例5: demoteGuests
/**
* Post action after removing guests admin role to redirect back to the event form.
* @author Jason Rey <jasonrey@stackideas.com>
* @since 1.3
* @access public
*/
public function demoteGuests()
{
FD::info()->set($this->getMessage());
$id = JRequest::getInt('id');
return $this->redirect(FRoute::url(array('view' => 'events', 'layout' => 'form', 'id' => $id, 'activeTab' => 'guests')));
}
示例6: updateRecurringSuccess
public function updateRecurringSuccess()
{
FD::info()->set(false, JText::_('COM_EASYSOCIAL_EVENTS_FORM_UPDATE_SUCCESS'), SOCIAL_MSG_SUCCESS);
$task = $this->input->getString('task');
$eventId = $this->input->getInt('id');
$event = FD::event($eventId);
// Remove the post data from params
$clusterTable = FD::table('Cluster');
$clusterTable->load($event->id);
$eventParams = FD::makeObject($clusterTable->params);
unset($eventParams->postdata);
$clusterTable->params = FD::json()->encode($eventParams);
$clusterTable->store();
if ($task === 'apply') {
return $this->redirect(FRoute::url(array('view' => 'events', 'layout' => 'form', 'id' => $event->id, 'activeTab' => 'event')));
}
if ($task === 'savenew') {
return $this->redirect(FRoute::url(array('view' => 'events', 'layout' => 'form', 'category_id' => $event->category_id)));
}
return $this->redirect(FRoute::url(array('view' => 'events')));
}
示例7:
<?php
}
?>
<?php
} else {
?>
<tr class="is-empty">
<td colspan="<?php
echo $showOrdering ? 6 : 5;
?>
" class="center empty">
<?php
echo JText::_('COM_EASYSOCIAL_REGIONS_NO_REGIONS_FOUND');
?>
<?php
echo JText::sprintf('COM_EASYSOCIAL_REGIONS_TRY_INITIALISE_DATABASE', FRoute::url(array('view' => 'regions', 'layout' => 'init')));
?>
</td>
</tr>
<?php
}
?>
</tbody>
<tfoot>
<tr>
<td colspan="<?php
echo $showOrdering ? 6 : 5;
?>
" class="center">
<div class="footer-pagination"><?php
echo $pagination->getListFooter();