02-18-2009, 02:20 PM
[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:
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?
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?