File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ For CakePHP 3.x
992 . 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.
13134 . 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```
2626php 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
3336namespace App\Controller;
You can’t perform that action at this time.
0 commit comments