Search code examples
phpcodeignitercodeigniter-2

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.


Solution

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