Ryan Chan wrote:
Hello,
As a ZFW learner, I tried the quick start:
http://framework.zend.com/docs/quickstart/create-a-form
My problem is when the controller contains many action - it make the
file too large to edit.
So I want to split each action into a separate PHP file, is it possible?
Thanks...
Hi Ryan,
If you find your controller too large consider the following:
1. Segregating your application into multiple modules each having their
own controllers
2. In the controller action receive the request, call the appropriate
methods of your models and then assign variables to the view. This
approach makes your controllers thin.
IMO, it becomes very difficult to manage the code if every controller
actions include files.
--
With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net,
Personal: http://sudheer.net