• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is it normal for a coder to have all the controllers in 1 file? Main.php

#21
[eluser]vmirjamali[/eluser]
I wish I could but I figured this out when he vanished (after he got paid for the midway point may I add) last week, and I asked another coder about it. The other coder knows rails, so he was wondering if CI was different in how it handles controllers. Seems like it's not it was just bad coding practice.

Thanks again I'll be back with more questions later. Man I'm going to try to learn php allover again freelance coders are freaky at times.

#22
[eluser]Zeeshan Rasool[/eluser]
well, i think we should use one controller but we can use multiple models so that we keep tracking that which model contains the which type of data. Simply you can use site.php for site and admin.php for admin side.
Its just my thinking so you can also do as the other guys have mentioned in their views.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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