Hi,
I am very new to slim framework and also my first time doing REST API. I tried both method as below.
composer create-project slim/slim-skeleton
composer create-project slim/slim.
I am on centos 7. For the second method I notice a lot of things need to be done on your own e.g. logging etc. My issue is that I dont know
1. Which method is correct one to be followed for both security and maitenance ?
2. My issue is that for example I have tried this link
http://myip/apiv1/public/ . The moment I put e.g.
http://myip/apiv1/public/test1. It fail to show up but when I put
http://myip/apiv1/public/index.php/test1 this shows up. So I have been reading a lot of about url rewrite. I have tried settings in the apache config file the following line
Code:
<Directory "/var/www">
AllowOverride All
# Allow open access:
Require all granted
Options -Indexes
</Directory>
Code:
<Directory "/var/www/html">
Options -Indexes -FollowSymLinks
AllowOverride None
Require all granted
</Directory>
I even tried the second one to AllowOverrride All but then everything stop working I revert to None. The issue is that what else am I missing here ?