Skip to content

Commit 9bee29d

Browse files
authored
Update README.md
1 parent da9e155 commit 9bee29d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ IP2Location CakePHP plugin enables the user to find the country, region, city, c
66

77

88
## INSTALLATION
9-
For CakePHP 3.x
9+
For CakePHP 4.x
1010

11-
1. Run the command: `composer require ip2location/ip2location-cakephp` to download the plugin into the CakePHP 3 platform.
11+
1. Run the command: `composer require ip2location/ip2location-cakephp` to download the plugin into the CakePHP 4 platform.
1212
2. Download latest IP2Location BIN database
1313
- IP2Location free LITE database at https://lite.ip2location.com
1414
- IP2Location commercial database at https://www.ip2location.com
@@ -24,12 +24,12 @@ Please select the right package for download.
2424
## USAGE
2525
In this tutorial, we will show you on how to create a **TestsController** to display the IP information.
2626

27-
1. Create a **TestsController** in CakePHP 3 using the below command line
27+
1. Create a **TestsController** in CakePHP 4 using the below command line
2828
```
2929
php bin/cake bake controller Tests
3030
```
31-
2. Create a **Tests** folder in */src/Tempalte* if not exists.
32-
3. Create an empty **index.ctp** file in */src/Template/Tests* folder.
31+
2. Create a **Tests** folder in */cakephp/templates* if not exists.
32+
3. Create an empty **index.php** file in */cakephp/templates/Tests* folder.
3333
4. Open the **cakephp/src/Controller/TestsController.php** in any text editor.
3434
5. Remove the contents in TestsController.php and add the below lines into the controller file.
3535

0 commit comments

Comments
 (0)