本文整理汇总了PHP中AssetsHelper::uploadUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP AssetsHelper::uploadUrl方法的具体用法?PHP AssetsHelper::uploadUrl怎么用?PHP AssetsHelper::uploadUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AssetsHelper
的用法示例。
在下文中一共展示了AssetsHelper::uploadUrl方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
break;
case 'file':
?>
{{ Form::hidden('setting[' . $setting->setting_key . ']', $settingValue) }}
<div class="input-group">
<input type="text" class="form-control selected-file" readonly="" />
<span class="input-group-btn">
<span class="btn btn-primary btn-file">
Browse {{ Form::file($setting->setting_key, array('class' => 'form-control' . ($setting->isRequired() ? ' required' : ''), 'id' => 'setting-' . $setting->setting_key)) }}
</span>
</span>
</div>
<?php
if ($settingValue != '') {
echo HTML::link(AssetsHelper::uploadUrl($settingValue), trans("settings-module::label.view_file"), array("target" => "_blank"));
}
?>
<?php
break;
case 'textarea':
?>
{{ Form::textarea('setting[' . $setting->setting_key . ']', $settingValue, array('placeholder' => $pHolder, 'class' => 'form-control' . ($setting->isRequired() ? ' required' : '') . ($settingMChoice ? ' wysihtml5' : ''), 'id' => 'setting-' . $setting->setting_key, 'type' => $settingType)) }}
<?php
break;
case 'simple_textarea':
?>
{{ Form::textarea('setting[' . $setting->setting_key . ']', $settingValue, array('placeholder' => $pHolder, 'rows' => 6, 'class' => 'form-control' . ($setting->isRequired() ? ' required' : ''), 'id' => 'setting-' . $setting->setting_key, 'type' => $settingType)) }}
<?php
break;
case 'text':