Esempio n. 1
0
 function __construct()
 {
     //
     self::$settings = Config::get('garbarinoviajes');
     //
     self::$static = url('statics') . '/';
     //
     if (false == \Illuminate\Support\Facades\Request::ajax()) {
         self::addJsHeader('http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js');
         self::addCss('main.css');
         // ex bootstrap
         self::addCss('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css');
         self::addCss('https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/redmond/jquery-ui.css');
         self::addCss('details.css');
         //	self::addCss('1200.css');
         self::addJsFooter('https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js');
         self::addJsFooter('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js');
     }
     //
     \Illuminate\Support\Facades\Blade::extend(function ($value) {
         return preg_replace('/(\\s*)@(break|continue)(\\s*)/', '$1<?php $2; ?>$3', $value);
     });
     //
     view()->composer('*', 'App\\Http\\Composers\\ViewComposer');
 }
Esempio n. 2
0
 /**
  * Sets the value of response.
  *
  * @param mixed $response the response
  *
  * @return self
  */
 public function setRes($response)
 {
     self::$response = $response;
     return $this;
 }