當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Controller::addCss方法代碼示例

本文整理匯總了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');
     }
 }
開發者ID:fcolella,項目名稱:docker,代碼行數:15,代碼來源:BookingController.php

示例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);
 }
開發者ID:fcolella,項目名稱:docker,代碼行數:22,代碼來源:InsuranceController.php

示例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]);
 }
開發者ID:fcolella,項目名稱:docker,代碼行數:5,代碼來源:ViewComposer.php


注:本文中的App\Http\Controllers\Controller::addCss方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。