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


PHP Resource::getCommonUrl方法代码示例

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


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

示例1: init

 public function init()
 {
     parent::init();
     $this->libUrl = Resource::getCommonUrl() . '/libs/kindeditor';
 }
开发者ID:ruzuojun,项目名称:lulucms2,代码行数:5,代码来源:KindEditor.php

示例2: init

 public function init()
 {
     parent::init();
     $this->libUrl = Resource::getCommonUrl() . '/libs/kindeditor';
     $this->defaultParams['width'] = '"' . $this->width . '"';
 }
开发者ID:hucongyang,项目名称:lulucms2,代码行数:6,代码来源:KindEditor.php

示例3: registerStatics

    /**
     * 加载静态资源
     */
    public function registerStatics()
    {
        LsYii::getView()->registerJsFile(Resource::getCommonUrl('/libs/jquery.treeview/lib/jquery.cookie.js'), ['depends' => 'yii\\web\\YiiAsset']);
        LsYii::getView()->registerJsFile(Resource::getCommonUrl('/libs/jquery.treeview/jquery.treeview.js'), ['depends' => 'yii\\web\\YiiAsset']);
        LsYii::getView()->registerCssFile(Resource::getCommonUrl('/libs/jquery.treeview/jquery.treeview.css'), ['depends' => 'yii\\bootstrap\\BootstrapAsset']);
        LsYii::getView()->registerJs(<<<EOD
          \$("#{$this->treeOptions['id']}").treeview({
                persist: "{$this->presist}",
                collapsed: {$this->collapsed},
                unique: {$this->unique},
                animated: "{$this->animated}",
            });      
EOD
, \yii\web\View::POS_END);
    }
开发者ID:liuwz465501235,项目名称:lscms,代码行数:18,代码来源:TreeView.php

示例4:

/js/jquery.min.js?ver=1419744126'></script>
    <script type='text/javascript' src='<?php 
echo Resource::getInstallUrl();
?>
/js/jquery-migrate.min.js?ver=1419744126'></script>
    <script type='text/javascript' src='<?php 
echo Resource::getInstallUrl();
?>
/js/jquery.dropkick.min.js?ver=1419744126'></script>

    <script type='text/javascript' src='<?php 
echo Resource::getCommonUrl();
?>
/libs/jquery.validate/jquery.validate.min.js'></script>
    <script type='text/javascript' src='<?php 
echo Resource::getCommonUrl();
?>
/libs/jquery.validate/localization/messages_zh.min.js'></script>

    <!--[if lt IE 9]>
<script src="<?php 
echo Resource::getInstallUrl();
?>
/js/html5.js"></script>
<script src="<?php 
echo Resource::getInstallUrl();
?>
/js/selectivizr.js"></script>
<script src="<?php 
echo Resource::getInstallUrl();
?>
开发者ID:sym660,项目名称:lulucms2,代码行数:31,代码来源:main.php

示例5:

            <td>
                <input value="" type="email" name="email" id="email" class="class_input email required" />
                <span class="email"></span>
            </td>
        </tr>
<!--        <tr>
            <th height="30" align="right">安装测试数据:</th>
            <td>
                <input value="Y" type="checkbox" name="testData" style="margin-left: 5px;" id="testData" />
                是
            </td>
        </tr>
        <tr>
            <th height="30" align="right">&nbsp;</th>
            <td>
                <p class="red">全新安装会覆盖旧数据 </p>
            </td>
        </tr>-->
    </table>
    <div class="inst_btn_area">
        <button type="button" onclick="history.go(-1);return false;" class="button">返 回</button>
        &nbsp;
        <button type="submit" class="button">下一步</button>
    </div>
    <?php 
ActiveForm::end();
?>
</div>
<?php 
Resource::jsFile(Resource::getCommonUrl('/js/jquery.min.js'));
Resource::jsFile(Resource::getInstallUrl("/js/jquery.db.validate.js"));
开发者ID:liuwz465501235,项目名称:lscms,代码行数:31,代码来源:db.php


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