Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CodeIgniter : controller within a folder, both with the same name

imagen

im having trouble figuring out how to be able to access the methods inside controllers that are inside a subfolder.

I want to access the employee.php methods and find a way to make the server diferentiate between employee/login (as a method of employee/employee.php) and employee/group/add (as a method of employee/group.php).

I've tried configuring routing but it only seems to work with methods, also tried redirections in .htaccess with no success.

like image 593
vto Avatar asked Jan 30 '26 14:01

vto


1 Answers

Well I think it is best a best practice in this case name the folder in a different manier respect that of internal file

like image 68
Mazzy Avatar answered Feb 01 '26 04:02

Mazzy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!