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/install.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@
12
12
-[Protect All Pages](#protect-all-pages)
13
13
-[Rate Limiting](#rate-limiting)
14
14
15
-
These instructions assume that you have already [installed the CodeIgniter 4 app starter](https://codeigniter.com/user_guide/installation/installing_composer.html) as the basis for your new project, set up your `.env` file, and created a database that you can access via the Spark CLI script.
15
+
These instructions assume that you have already [installed the CodeIgniter 4 app starter](https://codeigniter.com/user_guide/installation/installing_composer.html) as the basis for your new project, set up your **.env** file, and created a database that you can access via the Spark CLI script.
16
16
17
17
## Requirements
18
18
@@ -103,7 +103,7 @@ Require it with an explicit version constraint allowing its desired stability.
103
103
There are a few setup items to do before you can start using Shield in
104
104
your project.
105
105
106
-
1. Copy the `Auth.php` and `AuthGroups.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 of the settings, group, and permission information for your application and will need to be modified to meet the needs of your site.
106
+
1. Copy the **Auth.php** and **AuthGroups.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 of the settings, group, and permission information for your application and will need to be modified to meet the needs of your site.
107
107
108
108
```php
109
109
// new file - app/Config/Auth.php
@@ -140,7 +140,7 @@ your project.
140
140
service('auth')->routes($routes);
141
141
```
142
142
143
-
4. **Security Setup** Set `Config\Security::$csrfProtection` to `'session'` (or set `security.csrfProtection = session` in your `.env` file) for security reasons, if you use Session Authenticator.
143
+
4. **Security Setup** Set `Config\Security::$csrfProtection` to `'session'` (or set `security.csrfProtection = session` in your **.env** file) for security reasons, if you use Session Authenticator.
144
144
145
145
5. **Migration** Run the migrations.
146
146
@@ -152,7 +152,7 @@ your project.
152
152
153
153
When you run `spark migrate --all`, if you get `Class "SQLite3" not found` error:
154
154
155
-
1. Remove sample migration files in `tests/_support/Database/Migrations/`
155
+
1. Remove sample migration files in **tests/_support/Database/Migrations/**
156
156
2. Or install `sqlite3` php extension
157
157
158
158
If you get `Specified key was too long` error:
@@ -209,7 +209,7 @@ permission | Checks if the user has the passed permissions.
209
209
210
210
These can be used in any of the [normal filter config settings](https://codeigniter.com/user_guide/incoming/filters.html?highlight=filter#globals), or [within the routes file](https://codeigniter.com/user_guide/incoming/routing.html?highlight=routs#applying-filters).
211
211
212
-
> **Note** These filters are already loaded for you by the registrar class located at `src/Config/Registrar.php`.
212
+
> **Note** These filters are already loaded for you by the registrar class located at **src/Config/Registrar.php**.
0 commit comments