Skip to content

Commit d7137e5

Browse files
authored
update instructions
1 parent b82d0c5 commit d7137e5

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ For CakePHP 3.x
99
2. Download latest IP2Location BIN database
1010
- IP2Location free LITE database at http://lite.ip2location.com
1111
- IP2Location commercial database at http://www.ip2location.com
12-
3. Unzip and copy the BIN file into *cakephp/vendor/ip2location/ip2location-cakephp/src/Data* folder.
12+
3. Unzip and copy the BIN file into */vendor/ip2location/ip2location-cakephp/src/Data* folder.
1313
4. Rename the BIN file to IP2LOCATION.BIN.
1414

1515
**Note:** The plugin has included an old BIN database for your testing and development purpose.
@@ -25,9 +25,12 @@ In this tutorial, we will show you on how to create a **TestsController** to dis
2525
```
2626
php bin/cake bake controller Tests
2727
```
28-
2. Create an empty **index.ctp** file in *cakephp/src/Template/Tests* folder.
29-
3. Open the **cakephp/src/Controller/TestsController.php** in any text editor.
30-
4. Remove the contents in TestsController.php and add the below lines into the controller file.
28+
2. Create a **Tests** folder in */src/Tempalte* if not exists.
29+
3. Create an empty **index.ctp** file in */src/Template/Tests* folder.
30+
4. Open the **cakephp/src/Controller/TestsController.php** in any text editor.
31+
5. Remove the contents in TestsController.php and add the below lines into the controller file.
32+
33+
Note: You just need to load the IP2Location library with **use IP2LocationCakePHP\Controller\IP2LocationCoresController** to use the functions.
3134
```
3235
<?php
3336
namespace App\Controller;

0 commit comments

Comments
 (0)