-
Notifications
You must be signed in to change notification settings - Fork 0
1 Install Vanitas
In order to install the application, you just have to upload the files on your server without modifying any file. In my case, I created a lib
folder where I put my vanitas root file. You might have your folders like : /home/user/Project/myProject/lib/vanitas/
.
Just remember that its location is not important, upload the folder vanitas
in whatever place you want.
Inside this folder, make sure everything is all right : you must have your vanitas.php
file and a src
folder.
Yep, that's now installed. What about using it now ?
Once you uploaded/installed your vanitas folder where you desire, you can already start using it with a single line of code. Just place this line on each page you want to get informations about your visitors :
require_once 'location/of/yourvanitas/folder/vanitas.php';
If you have a MVC or MVP pattern on your application, you can simply add the line on your controllers instead of your pages. If you have a main controller or an abstract controller, you can put this line of code in it once for your entire application.