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


PHP FRoute::url方法代码示例

本文整理汇总了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 
        }
        ?>
开发者ID:knigherrant,项目名称:decopatio,代码行数:30,代码来源:default.php

示例2: restoreTrash

 public function restoreTrash($tpl = null)
 {
     FD::info()->set($this->getMessage());
     return $this->redirect(FRoute::url(array('view' => 'stream')));
 }
开发者ID:ppantilla,项目名称:bbninja,代码行数:5,代码来源:view.html.php

示例3: form

 public function form()
 {
     return $this->app->redirect(FRoute::url(array('view' => 'regions', 'layout' => 'form')));
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:4,代码来源:regions.php

示例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));
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:14,代码来源:view.html.php

示例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')));
 }
开发者ID:ppantilla,项目名称:bbninja,代码行数:12,代码来源:view.html.php

示例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')));
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:21,代码来源:view.html.php

示例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();
开发者ID:knigherrant,项目名称:decopatio,代码行数:31,代码来源:default.php


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