本文整理汇总了PHP中App\Http\Controllers\Controller::addCss方法的典型用法代码示例。如果您正苦于以下问题:PHP Controller::addCss方法的具体用法?PHP Controller::addCss怎么用?PHP Controller::addCss使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类App\Http\Controllers\Controller
的用法示例。
在下文中一共展示了Controller::addCss方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: displayCommons
static function displayCommons($totalAmount = 0)
{
$tester = false == empty($_COOKIE['tester']) && $_COOKIE['tester'] == 'tester' ? true : false;
$tester = false == empty($_GET['tester']) && $_GET['tester'] == 'tester' ? true : $tester;
self::addJsFooter('bootstrap/bootstrap-select.js');
self::addJsFooter('jquery-ui/jquery.ui.autocomplete.js');
self::addJsFooter('booking/select-autocomplete.js');
self::addJsFooter('booking/init.js');
view()->share(['CREDITO_GARBARINO_ID' => 0, 'gastos' => 0, 'datosVendedor' => false, 'osName' => "", 'intereses' => 0, 'bonificacion' => 0, 'cargosGestion' => 0, 'coefDescuento' => 0, 'descCargosGestion' => 0, 'testuser' => $tester, 'totalAmount' => $totalAmount, 'InstallmentsWOinterest' => self::getInstallmentsWOinterest(), 'InstallmentsWinterest' => self::getInstallmentsWinterest(), 'InstallmentsOtherBanks' => self::getInstallmentsOtherBanks(), 'InstallmentsUatp' => self::getInstallmentsUatp(), 'Nationalities' => self::getNationalities(), 'CitiesAutocomplete' => '/compra/CitiesAutocomplete', 'FormAction' => Request::url() . '?' . http_build_query(\Request::all()), 'States' => self::getStates(), 'Months' => self::getMonths()]);
Controller::addCss('1200.css');
Controller::addCss('booking.css');
if (true === $tester) {
self::addJsFooter('booking/tester.js');
}
}
示例2: redirect
/**
*
**/
function __construct()
{
// $form = Request::all(); print_pre($form,0,0);
if (false == self::$enabled) {
return redirect(URL::to('/'), 302)->send();
}
parent::__construct();
// Add css and js
if (false == Request::ajax()) {
Controller::addCss('Insurance/stylesheet.css');
Controller::addJsFooter('lib/jquery.validate.js');
Controller::addJsFooter('Insurance/SearchBox.js');
}
// get search zones from Gulliver
$availableGeoZones = Gulliver::getInsurancesFilters();
// Common search form
view()->share(['InsuranceSearch' => Cookie::get(self::$config['cookieName']), 'InsuranceZones' => false == empty($availableGeoZones['availableGeoZones']) ? $availableGeoZones['availableGeoZones'] : [], 'InsuranceConfig' => self::$config]);
unset($availableGeoZones);
}
示例3: compose
public function compose(View $view)
{
Controller::addCss('fixes.css');
view()->share(['ROOT' => url(), 'STATICS' => Controller::$static, 'headers' => Controller::getHeaders(), 'jsHeader' => Controller::$jsHeader, 'cssTags' => Controller::$css, 'jsFooter' => Controller::$jsFooter, 'route' => Controller::$route, 'NavbarProducts' => Controller::getProducts('navbar'), 'NavbarExtra' => Controller::getNavbarExtra(), 'FooterLinks' => Controller::getFooterLinks(), 'CYBERMONDAY_TIME' => false, 'SHOW_TRAVEL_SALE_TAG' => false]);
}