當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。