0

I'm trying to make folder in controller folder with exact name like controller in Codeigniter. Is it possible by some trick or something?

Screenshot here: https://i.stack.imgur.com/sJnbe.png

Arm Peev
  • 128
  • 4

3 Answers3

1

If it will be like

/controllers/manage/manage.php

you should add in /config/routes.php

$route['manage/(.*)'] = "manage/manage/$1";
$route['manage'] = "manage/manage";
Andrei Zhamoida
  • 1,457
  • 1
  • 20
  • 30
0

EDIT

I incorrectly viewed the first time and thought manage.php was outside the manage folder.

It will work, but your URL will just have "manage" twice. You could change the routes config to remove the first "manage", but it will be less confusing and time-consuming to just name manage.php something different.

Devin Young
  • 841
  • 7
  • 21
0

There is no problem in using the same name, but it is confusing. The best solution would be to change the name, but you can use just fine.

Remember to use the routes with 'manage/manage/function'.

Diego Castro
  • 2,046
  • 2
  • 21
  • 28