• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Splitting one controller into multiple files

#1
[eluser]xzela[/eluser]
Is there a way to split a single controller into multiple files?

I would like to start splitting a particular controller I'm working with into smaller pieces because it's starting to become rather large.

Here is an example of what I would like to achieve:

I have two urls:
Code:
http://localhost/junk/foo/1

http://localhost/junk/bar/1

These urls relate to the same controller 'junk'. But what I would like to do is be able to split the controller into two files so that foo and bar are not in the same file.

Does anyone know if this is even possible? or, is this the wrong way to go about it and large controllers are normal?


Messages In This Thread
Splitting one controller into multiple files - by El Forum - 02-18-2009, 02:20 PM
Splitting one controller into multiple files - by El Forum - 02-18-2009, 03:51 PM
Splitting one controller into multiple files - by El Forum - 02-18-2009, 04:49 PM
Splitting one controller into multiple files - by El Forum - 02-18-2009, 04:58 PM
Splitting one controller into multiple files - by El Forum - 02-18-2009, 05:02 PM
Splitting one controller into multiple files - by El Forum - 02-18-2009, 05:08 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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