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

#21
(07-10-2016, 08:00 AM)InsiteFX Wrote: @ arma7x

I do not get your point on this because http://127.0.0.1/path/to/public Works just fine on my Windows system and has for years but now I use VirtualHosts
Yes, http://127.0.0.1/path/to/public work fine. But if you using url helper, the base_url return http://127.0.0.1/ instead of http://127.0.0.1/path/to/public
Keep calm.
Reply

#22
Strange I never saw that, but anyways I use VirtualHosts now a lot nicer.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply

#23
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
Reply

#24
(07-25-2016, 08: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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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