These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | /* |
||
4 | * This file is part of the 2amigos/yii2-usuario project. |
||
5 | * |
||
6 | * (c) 2amigOS! <http://2amigos.us/> |
||
7 | * |
||
8 | * For the full copyright and license information, please view |
||
9 | * the LICENSE file that was distributed with this source code. |
||
10 | */ |
||
11 | |||
12 | /** |
||
13 | * @var \Da\User\Model\Permission |
||
14 | * @var $this yii\web\View |
||
15 | * @var $unassignedItems string[] |
||
16 | */ |
||
17 | |||
18 | $this->title = Yii::t('usuario', 'Create new permission'); |
||
19 | $this->params['breadcrumbs'][] = $this->title; |
||
20 | |||
21 | ?> |
||
22 | |||
23 | <?php $this->beginContent('@Da/User/resources/views/shared/admin_layout.php') ?> |
||
24 | |||
25 | <?= $this->render( |
||
26 | '_form', |
||
27 | [ |
||
28 | 'model' => $model, |
||
29 | 'unassignedItems' => $unassignedItems, |
||
30 | ] |
||
31 | ) ?> |
||
32 | |||
33 | <?php $this->endContent() ?> |
||
0 ignored issues
–
show
|
|||
34 |
Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.
A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.