本文整理汇总了PHP中Blade::setContentTags方法的典型用法代码示例。如果您正苦于以下问题:PHP Blade::setContentTags方法的具体用法?PHP Blade::setContentTags怎么用?PHP Blade::setContentTags使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Blade
的用法示例。
在下文中一共展示了Blade::setContentTags方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: boot
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
\Blade::setContentTags('<%', '%>');
// for variables and all things Blade
\Blade::setEscapedContentTags('<%%', '%%>');
// for escaped data
}
示例2: 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');
}
示例3: register
/**
* Register any application services.
*
* @return void
*/
public function register()
{
$this->mergeConfigFrom(__DIR__ . '/../../../config/veer.php', 'veer');
\Blade::setRawTags('{{', '}}');
\Blade::setContentTags('{{{', '}}}');
\Blade::setEscapedContentTags('{{{', '}}}');
}
示例4: 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('{{{', '}}}');
}
示例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: function
|--------------------------------------------------------------------------
|
| 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('[[[', ']]]');
示例12: function
<?php
/*
|--------------------------------------------------------------------------
| 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.
|
*/
Blade::setContentTags('{!', '!}');
Route::get('/', function () {
return view('Dashboard.index');
});
Route::get('/employees', function () {
return view('Employee.index');
});
Route::get('/sites', function () {
return view('Site.index');
});
Route::get('/transactions', function () {
return view('Transaction.index');
});
Route::resource('dashboard', 'DashboardController');
Route::resource('employee', 'EmployeeController');
Route::resource('site', 'SiteController');
Route::resource('transaction', 'TransactionController');
Route::get('test/{id}', function ($id) {
$year = DB::select(DB::raw("select monthname(str_to_date(month(workDate),'%m')) as Months,workDate,\n (select sum(amount) from siteemployeerel where monthname(str_to_date(month(workDate),'%m')) = Months and year(workDate) = {$id}) as Amount\n from siteemployeerel\n where year(workDate) = {$id}\n group by(months)\n order by(workDate)"));
示例13: function
<?php
use App\User;
use App\Message;
/*
|--------------------------------------------------------------------------
| 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::get('/', function () {
Blade::setContentTags('[%', '%]');
return view('welcome');
});
get('/users', function () {
return response()->json(User::all());
});
get('/user/tickets', function () {
return response()->json([1 => ['name' => '合同1'], 2 => ['name' => '合同2']]);
});
get('/messages', function () {
return response()->json(Message::all());
});
post('post/store', 'App\\Http\\Controllers\\PostController@store');
示例14: boot
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
//
\Blade::setContentTags('[%', '%]');
}
示例15: 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']);