Ask Your Question
2

When working with Zend Framework, is it more appropriate to categorize a script as a service or a controller?

asked 2021-09-11 11:00:00 +0000

david gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-11-12 02:00:00 +0000

scrum gravatar image

It depends on the functionality of the script. If the script serves as an endpoint for handling requests from clients and returning responses, it should be categorized as a controller. On the other hand, if the script is responsible for performing specific business logic and providing functionality to the entire application, it should be categorized as a service. Ultimately, the categorization should reflect the purpose and functionality of the script in the application.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-09-11 11:00:00 +0000

Seen: 7 times

Last updated: Nov 12 '22