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


PHP CRoute::getItemId方法代码示例

本文整理汇总了PHP中CRoute::getItemId方法的典型用法代码示例。如果您正苦于以下问题:PHP CRoute::getItemId方法的具体用法?PHP CRoute::getItemId怎么用?PHP CRoute::getItemId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CRoute的用法示例。


在下文中一共展示了CRoute::getItemId方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

">
                </span>
                <?php 
echo JHTML::_('form.token');
?>
                <span>
                    <button class="joms-button--neutral"><?php 
echo JText::_('COM_COMMUNITY_SEARCH_GO');
?>
</button>
                </span>
                <input type="hidden" name="option" value="com_community"/>
                <input type="hidden" name="view" value="groups"/>
                <input type="hidden" name="task" value="search"/>
                <input type="hidden" name="Itemid" value="<?php 
echo CRoute::getItemId();
?>
"/>
            </form>
            <!--<?php 
if ($canCreate) {
    ?>
            <button onclick="joms.api.videoAdd('<?php 
    echo $isGroup ? $groupId : '';
    ?>
');" class="joms-button--primary"><?php 
    echo !$isGroup ? JText::_('COM_COMMUNITY_VIDEOS_ADD') : JText::_('COM_COMMUNITY_GROUP_VIDEOS_ADD');
    ?>
</button>
            <?php 
}
开发者ID:Jougito,项目名称:DynWeb,代码行数:31,代码来源:groups.myinvites.php

示例2: dirname

require_once JPATH_ROOT . '/components/com_community/libraries/core.php';
require_once dirname(__FILE__) . '/helper.php';
$field = new stdClass();
$lang = JFactory::getLanguage();
$lang->load('com_community.country');
$lang->load('com_community');
//field code.
$field->code = new stdClass();
$field->code->gender = $params->get('field_gender', 'FIELD_GENDER');
$field->code->birthdate = $params->get('field_birthdate', 'FIELD_BIRTHDATE');
$field->code->country = $params->get('field_country', 'FIELD_COUNTRY');
$field->code->state = $params->get('field_state', 'FIELD_STATE');
$field->code->city = $params->get('field_city', 'FIELD_CITY');
//field value.
$field->value = new stdClass();
$field->value->gender = modDatingSearchHelper::getGenderValue($field->code->gender);
$field->value->country = modDatingSearchHelper::getCountryValue($field->code->country);
//field type
$field->type = modDatingSearchHelper::getFieldType($field->code);
//history of previous serach if exist.
$gender = JRequest::getVar('datingsearch_gender', '', 'GET');
$agefrom = JRequest::getVar('datingsearch_agefrom', '', 'GET');
$ageto = JRequest::getVar('datingsearch_ageto', '', 'GET');
$country = JRequest::getVar('datingsearch_country', '', 'GET');
$state = JRequest::getVar('datingsearch_state', '', 'GET');
$city = JRequest::getVar('datingsearch_city', '', 'GET');
$itemid = CRoute::getItemId();
$config = CFactory::getConfig();
// $js   = '/assets/script-1.2.min.js';
// CFactory::attach($js, 'js');
require JModuleHelper::getLayoutPath('mod_datingsearch', $params->get('layout', 'default'));
开发者ID:Jougito,项目名称:DynWeb,代码行数:31,代码来源:mod_datingsearch.php


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