Welcome Guest, Not a member yet? Register   Sign In
directory and controller
#1

Good day.
I have empty directory in '/temp' and controller '/application/controllers/Temp.php'.

If i open link 'mysite.com/temp' i does'n see echo from Temp.php. I see file from directory '/temp'.

And question, why is it? And where in codeigniter core this situation described.


Thank you!
Reply
#2

(This post was last modified: 01-18-2018, 03:44 AM by Elias.)

Most likely your web-server (apache, NGINX...) does it. It trying open real path and if real path not exists passes request to index.php of CodeIgniter.

See you web-server configuration.

Also by default CodeIgniter routing opens Controllers by this mask: example.com/index.php/controller/method -> your-site.com/temp/view
Reply
#3

It boils down to do not use system or CodeIgniter RESERVED Words.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB