本文整理汇总了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';
}
示例2: init
public function init()
{
parent::init();
$this->libUrl = Resource::getCommonUrl() . '/libs/kindeditor';
$this->defaultParams['width'] = '"' . $this->width . '"';
}
示例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);
}
示例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();
?>
示例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"> </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>
<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"));