Skip to content

Commit e5bfec1

Browse files
authored
Improved sample code for PHP file
1 parent 3eb3fac commit e5bfec1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/customization/integrating_custom_view_libs.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ If your application uses a different method to convert view files to HTML than C
55
All controllers and actions use the `CodeIgniter\Shield\Traits\Viewable` trait which provides a simple `view()` method that takes the same arguments as the `view()` helper. This allows you to extend the Action or Controller and only change the single method of rendering the view, leaving all of the logic untouched so your app will not need to maintain Shield logic when it doesn't need to change it.
66

77
```php
8+
<?php
9+
10+
declare(strict_types=1);
11+
12+
namespace App\Controllers;
13+
814
use Acme\Themes\Traits\Themeable;
915
use CodeIgniter\Shield\Controllers\LoginController;
1016

0 commit comments

Comments
 (0)