当前位置: 首页>>代码示例>>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;未经允许,请勿转载。