Welcome Guest, Not a member yet? Register   Sign In
Don't show the public folder when calling my project
#1

(This post was last modified: 12-28-2024, 09:04 AM by camarjhoa.)

Greetings, I am writing in order to be guided to make my project stop calling the public folder, since I only need it to appear like this: 127.0.0.1/mi_proyecto/ and for it to work I must call it 127.0.0.1/mi_proyecto/public
Reply
#2

Make sure public is removed from your url.
PHP Code:
// should be - your server path with an ending /.
public string $baseURL 'http://mi_proyecto.local/';

// should be
public string $indexPage '';

All files should be placed in the root of the server.

If 
you change the path then you will need to edit and change it in index,php and spark
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

I'm working on a project where I needed to pull license keys from an external API and display them in the admin panel. I decided to implement it on CI4 - I used a RESTful controller, cURL requests and token validation. Everything turned out quite clean and fast.Interestingly, the idea came when I was issuing a key for software via https://ggsel.net/ - they have a conveniently implemented purchase history with API responses in their interface. I wanted to do something similar for our internal cabinet.
If anyone is interested in the implementation - I can send code pieces, model connection and security scheme. I think this approach can be useful for any digital goods.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB