You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/getting_started/install.md
+14-15Lines changed: 14 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,8 @@ your project.
72
72
73
73
### Manual Setup
74
74
75
-
1. Copy the **Auth.php**, **AuthGroups.php**, and **AuthToken.php** from **vendor/codeigniter4/shield/src/Config/** into your project's config folder and update the namespace to `Config`. You will also need to have these classes extend the original classes. See the example below. These files contain all the settings, group, and permission information for your application and will need to be modified to meet the needs of your site.
75
+
1. **Config Setup:**
76
+
Copy the **Auth.php**, **AuthGroups.php**, and **AuthToken.php** from **vendor/codeigniter4/shield/src/Config/** into your project's config folder and update the namespace to `Config`. You will also need to have these classes extend the original classes. See the example below. These files contain all the settings, group, and permission information for your application and will need to be modified to meet the needs of your site.
76
77
77
78
```php
78
79
// new file - app/Config/Auth.php
@@ -91,29 +92,26 @@ your project.
91
92
}
92
93
```
93
94
94
-
2. **Helper Setup** The `setting` helper needs to be included in almost every page. The simplest way to do this is to add it to the `BaseController::initController()` method:
95
+
2. **Helper Setup:**
96
+
The `auth` and `setting` helpers need to be included in almost every page.
97
+
The simplest way to do this is to add it to the **app/Config/Autoload.php** file:
95
98
96
99
```php
97
-
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
0 commit comments