(07-25-2016, 07:42 PM)ibraheem_ghazi Wrote: so as i understand to make a controller in sub folder
i should set the namespace for each one of them to be like
namespace App\Controllers\SubFolder;
what if i need to change the SubFolder name then i should enter each file and edit namespace ??
i see that it would be much better if it depend on one of them either namespace or folder name
You could change the directory name without changing the namespaces, but that would involve editing the autoload configuration, and would make it more difficult to find those controllers later.