[fw-general] Re: [fw-mvc] [fw-general] call a custom action helper in a model file

2009-08-21 Thread Ronald Villar David
Hi there, Without knowing what your custom helper actually does, I guess you could take this in a couple of directions: - You could refactor it so that the functionality in the Custom Helper Class is in the Model, If you have controller specific logic, then perhaps you can create another

[fw-general] Re: [fw-mvc] [fw-general] call a custom action helper in a model file

2009-08-21 Thread Carlo Costantini
Vibhor you are missing Jeroen's point. Calling action helpers inside models would be a poor design decision. The model should not need anything that isn't supplied to it by the code calling it. Having an action helper which provides a large amount of functionality would be putting too much

[fw-general] RE: [fw-mvc] [fw-general] call a custom action helper in a model file

2009-08-21 Thread Vibhor Singh
Hello Jorean, Thanks for your reply. Let me explain you my case. Hope it helps. I have made a custom Helper file that is used by many controller files in a modular ZF application. So I have placed it in a folder at the root level, so that it can be accessed wherever necessary. There i

[fw-general] Re: [fw-mvc] [fw-general] call a custom action helper in a model file

2009-08-21 Thread Jeroen Keppens
Hi Vibhor, I don't think it's good MVC to call action helpers (part of the controller) directly from your model. I would write the functionality (can you explain a bit what you want to do), in separate classes in your library and wrap the action helper around it for use in the controller.