当前位置: 首页>>代码示例>>PHP>>正文


PHP Blade::setEscapedContentTags方法代码示例

本文整理汇总了PHP中Blade::setEscapedContentTags方法的典型用法代码示例。如果您正苦于以下问题:PHP Blade::setEscapedContentTags方法的具体用法?PHP Blade::setEscapedContentTags怎么用?PHP Blade::setEscapedContentTags使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Blade的用法示例。


在下文中一共展示了Blade::setEscapedContentTags方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: index

 /**
  * Return template for Angular
  *
  * @return View
  */
 public function index()
 {
     // Change blade tags so they don't clash with Angular
     Blade::setEscapedContentTags('[[[', ']]]');
     Blade::setContentTags('[[', ']]');
     return View::make('addressbook');
 }
开发者ID:lakedawson,项目名称:vocal,代码行数:12,代码来源:UserController.php

示例2: register

 /**
  * Register any application services.
  *
  * @return void
  */
 public function register()
 {
     $this->app->bind('Illuminate\\Contracts\\Auth\\Registrar', 'App\\Services\\Registrar');
     \Blade::setRawTags('{{', '}}');
     \Blade::setContentTags('{{{', '}}}');
     \Blade::setEscapedContentTags('{{{', '}}}');
 }
开发者ID:bayudarmantra,项目名称:collaborative,代码行数:12,代码来源:AppServiceProvider.php

示例3: boot

 /**
  * Bootstrap any application services.
  *
  * @return void
  */
 public function boot()
 {
     \Blade::setContentTags('<%', '%>');
     // for variables and all things Blade
     \Blade::setEscapedContentTags('<%%', '%%>');
     // for escaped data
 }
开发者ID:andbet39,项目名称:things,代码行数:12,代码来源:AppServiceProvider.php

示例4: register

 /**
  * Register any application services.
  *
  * @return void
  */
 public function register()
 {
     $this->mergeConfigFrom(__DIR__ . '/../../../config/veer.php', 'veer');
     \Blade::setRawTags('{{', '}}');
     \Blade::setContentTags('{{{', '}}}');
     \Blade::setEscapedContentTags('{{{', '}}}');
 }
开发者ID:artemsk,项目名称:veer-core,代码行数:12,代码来源:AppServiceProvider.php

示例5: boot

 /**
  * Bootstrap any application services.
  *
  * @return void
  */
 public function boot()
 {
     \Blade::setContentTags('{{{', '}}}');
     \Blade::setEscapedContentTags('{{', '}}');
     \Blade::setEchoFormat('nl2br(e(%s))');
     \Form::component('checklist', 'components.form.checklist', ['name', 'options']);
 }
开发者ID:rikmeijer,项目名称:teach.php,代码行数:12,代码来源:AppServiceProvider.php

示例6: boot

 /**
  * Bootstrap any application services.
  *
  * @return void
  */
 public function boot()
 {
     parent::boot();
     \Blade::setRawTags("[[", "]]");
     \Blade::setContentTags('<%', '%>');
     // for variables and all things Blade
     \Blade::setEscapedContentTags('<%%', '%%>');
     // for escaped data
 }
开发者ID:jtpenny,项目名称:laratasks,代码行数:14,代码来源:AppServiceProvider.php

示例7: register

 /**
  * Register any application services.
  *
  * This service provider is a great spot to register your various container
  * bindings with the application. As you can see, we are registering our
  * "Registrar" implementation here. You can add your own bindings too!
  *
  * @return void
  */
 public function register()
 {
     $this->app->bind('Illuminate\\Contracts\\Auth\\Registrar', 'Symposium\\Services\\Registrar');
     $this->app->bind('form', function () {
         return new \Illuminate\Html\FormBuilder($this->app->make('Illuminate\\Html\\HtmlBuilder'), $this->app->make('Illuminate\\Routing\\UrlGenerator'), csrf_token());
     });
     $this->app->alias('ttwitter', 'Thujohn\\Twitter\\Twitter');
     \Blade::setRawTags('{{', '}}');
     \Blade::setContentTags('{{{', '}}}');
     \Blade::setEscapedContentTags('{{{', '}}}');
 }
开发者ID:jwalton512,项目名称:symposium,代码行数:20,代码来源:AppServiceProvider.php

示例8: showAutor

 public function showAutor($tiposId, $generosId)
 {
     // \Blade::setRawTags("[[", "]]");
     \Blade::setContentTags('<%', '%>');
     // for variables and all things Blade
     \Blade::setEscapedContentTags('<%%', '%%>');
     // for escaped data
     $tipos = tipo::find($tiposId);
     $generos = genero::find($generosId);
     $autores = autor::all();
     $arreglo = ['autores' => $autores, 'tipos' => $tipos, 'generos' => $generos];
     return view('texto.selectAutor', compact('arreglo'));
 }
开发者ID:nico722,项目名称:Fundacion_barraca,代码行数:13,代码来源:autorController.php

示例9: createMigration

 /**
  * Create the migration.
  *
  * @param string $name
  *
  * @return bool
  */
 protected function createMigration($logTable)
 {
     \Blade::setContentTags("{{", "}}");
     \Blade::setEscapedContentTags("{{{", "}}}");
     $migrationFile = base_path("/database/migrations") . "/" . date('Y_m_d_His') . "_maillog_setup_tables.php";
     $output = $this->laravel->view->make('maillog::generators.migration')->with(['logTable' => $logTable])->render();
     if (!file_exists($migrationFile) && ($fs = fopen($migrationFile, 'x'))) {
         fwrite($fs, $output);
         fclose($fs);
         return true;
     }
     return false;
 }
开发者ID:iWedmak,项目名称:laravel-5-mail-log,代码行数:20,代码来源:MigrationCommand.php

示例10: function

<?php

/*
|--------------------------------------------------------------------------
| Routes File
|--------------------------------------------------------------------------
|
| Here is where you will register all of the routes in an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Blade::setContentTags('<%', '%>');
// for variables and all things Blade
Blade::setEscapedContentTags('<%%', '%%>');
// for escaped data
Route::get('/', function () {
    return view('welcome');
});
Route::get('foo', function () {
    return 'bar';
});
Route::get('articles', 'ArticlesController@index');
Route::get('articles/create', 'ArticlesController@create');
// {} need to register at the bottom otherwise laravel will load var in the wildcard {id} first
Route::get('articles/{id}', 'ArticlesController@show');
// Store new article
Route::post('articles', 'ArticlesController@store');
/*
|--------------------------------------------------------------------------
| Application Routes
开发者ID:johnnyvng,项目名称:l5_laracast,代码行数:31,代码来源:routes.php

示例11: app_path

/*
|--------------------------------------------------------------------------
| Require The Filters File
|--------------------------------------------------------------------------
|
| Next we will load the filters file for the application. This gives us
| a nice separate location to store our route and application filter
| definitions instead of putting them all in the main routes file.
|
*/
require app_path() . '/filters.php';
/*
|--------------------------------------------------------------------------
| Require The Form Macros File
|--------------------------------------------------------------------------
|
| Load custom form elements to be used throughout the application.
|
*/
require app_path() . '/form-macros.php';
/*
|--------------------------------------------------------------------------
| New tags for echoing escaped content in blade
|--------------------------------------------------------------------------
|
| We have to change the default {{{ }}} tags to something else, since
| they conflict with handlebars tags in javascript.
|
*/
Blade::setEscapedContentTags('{!!', '!!}');
开发者ID:arminsam,项目名称:SimpleUserManagement,代码行数:30,代码来源:global.php

示例12: function

| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::group(array('prefix' => '/api'), function () {
    Route::get('users/latest', 'API\\UsersController@getLatestUser');
    Route::post('users/create', 'API\\UsersController@createUser');
    Route::post('login/auth', 'API\\AuthController@Login');
    Route::post('login/destroy', 'API\\AuthController@Logout');
    Route::get('guides/location', 'API\\GuidesController@getGuidesByLocation');
});
Route::get('/', function () {
    return view('home.welcome');
});
Route::get('login', function () {
    return view('account.login');
});
Route::get('register', function () {
    return view('account.register');
});
Route::post('logout', 'AccountController@Logout');
Route::group(['middleware' => 'auth'], function () {
    Route::get('/dashboard', ['uses' => 'DashboardController@index']);
});
Route::get('s/{location}', ['uses' => 'SearchController@searchGuides']);
Blade::setEscapedContentTags('[[', ']]');
Blade::setContentTags('[[[', ']]]');
开发者ID:krussll,项目名称:7JVilCZVZQ,代码行数:31,代码来源:routes.php

示例13: register

 /**
  * Register any application services.
  *
  * @return void
  */
 public function register()
 {
     \Blade::setRawTags('{{', '}}');
     \Blade::setContentTags('{{{', '}}}');
     \Blade::setEscapedContentTags('{{{', '}}}');
 }
开发者ID:echiteri,项目名称:iBLIS,代码行数:11,代码来源:AppServiceProvider.php

示例14: function

<?php

Blade::setContentTags('{%', '%}');
Blade::setEscapedContentTags('{%%', '%%}');
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/
Route::get('/', ['uses' => 'HomeController@home']);
Route::get('/explore', ['uses' => 'HomeController@explore']);
Route::get('/view/{id}', ['uses' => 'PostController@view']);
Route::get('/login', ['uses' => 'HomeController@login']);
Route::get('/register', ['as' => 'register', 'uses' => 'HomeController@register']);
Route::get('/forgot-password', ['uses' => 'HomeController@forgotPassword']);
Route::get('/password-reset/{token}', ['as' => 'passwordReseter', 'uses' => 'HomeController@passwordReset']);
Route::post('/forgot-password', ['uses' => 'AuthController@forgotPassword']);
Route::post('/reset-password', ['uses' => 'AuthController@resetPassword']);
Route::post('/login', ['uses' => 'AuthController@login']);
Route::post('/register', ['uses' => 'AuthController@register']);
Route::get('/logout', ['uses' => 'AuthController@logout']);
Route::get('/user/{username}', ['as' => 'user_profile', 'uses' => 'UserController@profile']);
Route::get('/search', ['as' => 'search', 'uses' => 'SearchController@search']);
Route::group(array('before' => 'auth'), function () {
    Route::get('/create', ['uses' => 'PostController@edit']);
    Route::get('/dashboard', ['as' => 'dashboard', 'uses' => 'PostController@dashboard']);
开发者ID:ioangogo,项目名称:gruik,代码行数:31,代码来源:routes.php

示例15:

<?php

Blade::setContentTags('[[', ']]');
// for variables and all things Blade
Blade::setEscapedContentTags(',.', '.,');
// for escaped data
require 'routes/API.php';
require 'routes/auth.php';
require 'routes/www.php';
开发者ID:gemox94,项目名称:mariasg,代码行数:9,代码来源:routes.php


注:本文中的Blade::setEscapedContentTags方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。