Welcome Guest, Not a member yet? Register   Sign In
Cannot display images in CodeIgniter
#11

(07-13-2023, 03:35 AM)ilkin Wrote: Folder structure is the following: I have project-root folder, which is the baseUrl.

It seems you are confusing baseUrl and folders in filesystem.
The project-root folder is not baseUrl.

baseUrl is a URL, not a folder or directory.
Reply
#12

(This post was last modified: 07-13-2023, 04:14 AM by ilkin.)

I know the difference between baseUrl and filesystem. What I meant was - I manually set baseUrl to project-root
Reply
#13

Just out of curiosity: can you add css files to your view files using base_url() ?
Reply
#14

No. It does not work either. This is just crazy) External links work just fine though. The problem is in internal routing. I just do not know what exactly the problem is.
Reply
#15

base_url() is your problem... is project-root a folder in which app and public are located?
Reply
#16

Yes, that's right
Reply
#17

Show your app\Config base_url setting.
What did you Try? What did you Get? What did you Expect?

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

public string $baseURL = 'http://localhost:8080/project-root';
Reply
#19

add a trailing slash:
public string $baseURL = 'http://localhost:8080/project-root/';
Reply
#20

Did not help either(
Reply




Theme © iAndrew 2016 - Forum software by © MyBB