本文整理汇总了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');
}
示例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('{{{', '}}}');
}
示例3: boot
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
\Blade::setContentTags('<%', '%>');
// for variables and all things Blade
\Blade::setEscapedContentTags('<%%', '%%>');
// for escaped data
}
示例4: register
/**
* Register any application services.
*
* @return void
*/
public function register()
{
$this->mergeConfigFrom(__DIR__ . '/../../../config/veer.php', 'veer');
\Blade::setRawTags('{{', '}}');
\Blade::setContentTags('{{{', '}}}');
\Blade::setEscapedContentTags('{{{', '}}}');
}
示例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']);
}
示例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
}
示例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('{{{', '}}}');
}
示例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'));
}
示例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;
}
示例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
示例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('{!!', '!!}');
示例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('[[[', ']]]');
示例13: register
/**
* Register any application services.
*
* @return void
*/
public function register()
{
\Blade::setRawTags('{{', '}}');
\Blade::setContentTags('{{{', '}}}');
\Blade::setEscapedContentTags('{{{', '}}}');
}
示例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']);
示例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';