• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Controllers under subfolder

#24
(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.
Reply


Messages In This Thread
Controllers under subfolder - by fromberg - 06-30-2016, 10:40 PM
RE: Controllers under subfolder - by sv3tli0 - 06-30-2016, 11:53 PM
RE: Controllers under subfolder - by InsiteFX - 07-01-2016, 04:08 AM
RE: Controllers under subfolder - by titounnes - 07-01-2016, 01:20 PM
RE: Controllers under subfolder - by arma7x - 07-01-2016, 02:12 PM
RE: Controllers under subfolder - by titounnes - 07-01-2016, 09:20 PM
RE: Controllers under subfolder - by arma7x - 07-02-2016, 12:23 AM
RE: Controllers under subfolder - by fromberg - 07-01-2016, 10:07 PM
RE: Controllers under subfolder - by arma7x - 07-02-2016, 02:06 AM
RE: Controllers under subfolder - by fromberg - 07-02-2016, 07:24 AM
RE: Controllers under subfolder - by arma7x - 07-02-2016, 07:52 AM
RE: Controllers under subfolder - by sv3tli0 - 07-02-2016, 01:02 AM
RE: Controllers under subfolder - by titounnes - 07-02-2016, 03:40 AM
RE: Controllers under subfolder - by arma7x - 07-02-2016, 04:27 AM
RE: Controllers under subfolder - by arma7x - 07-02-2016, 04:05 AM
RE: Controllers under subfolder - by titounnes - 09-26-2019, 03:46 AM
RE: Controllers under subfolder - by InsiteFX - 07-02-2016, 03:19 AM
RE: Controllers under subfolder - by kilishan - 07-05-2016, 08:42 PM
RE: Controllers under subfolder - by InsiteFX - 07-10-2016, 04:59 AM
RE: Controllers under subfolder - by arma7x - 07-10-2016, 06:33 AM
RE: Controllers under subfolder - by InsiteFX - 07-10-2016, 07:00 AM
RE: Controllers under subfolder - by arma7x - 07-10-2016, 07:17 AM
RE: Controllers under subfolder - by InsiteFX - 07-10-2016, 01:01 PM
RE: Controllers under subfolder - by mwhitney - 07-27-2016, 09:23 AM
RE: Controllers under subfolder - by InsiteFX - 09-26-2019, 03:42 AM
RE: Controllers under subfolder - by InsiteFX - 09-26-2019, 04:37 AM
RE: Controllers under subfolder - by InsiteFX - 09-26-2019, 12:40 PM
RE: Controllers under subfolder - by InsiteFX - 09-26-2019, 07:12 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.