本文整理匯總了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':