Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
csrf doc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arrilot committed Oct 22, 2018
1 parent 7e577db commit a497afe
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@

## Установка

1. ```composer require arrilot/bitrix-blade```
1)```composer require arrilot/bitrix-blade```

2. добавляем в init.php

3. добавляем в конфиг nginx-а строчку ````location ~* /\.blade { deny all; }``` чтобы нельзя было получить исходный код шаблонов
2) добавляем в init.php

```php

Expand Down Expand Up @@ -48,7 +46,7 @@ $compiler->directive('directiveName', function ($expression) {
4. ```@auth``` и ```@endauth``` - сокращенная запись `<? if($USER->IsAuthorized()) ?> ... <? endif ?>`
5. ```@guest``` и ```@endguest``` - аналогично, но проверка на неавторизованного юзера.
6. ```@admin``` и ```@endadmin``` - аналогично, но `$USER->IsAdmin()`
7. ```@csrf``` - сокращенная форма для <input type="hidden" name="sessid" value="{!! bitrix_sessid() !!}" />
7. ```@csrf``` - сокращенная форма для ```<input type="hidden" name="sessid" value="{!! bitrix_sessid() !!}" />```
8. [Директивы по работе с эрмитажем](docs/hermitage.md)

## Некоторые моменты
Expand Down

0 comments on commit a497afe

Please sign in to comment.