Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3875594
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:17:06+00:00 2026-05-19T22:17:06+00:00

Iam building a Zend Rest Controller, and iam unsure about where to get the

  • 0

Iam building a Zend Rest Controller, and iam unsure about where to get the data from.
Basically i need to output the database data as xml format to the view.

Do i employ a model to controller data exchange,

or just query database and get the data in the controller itself, without the need of a model?

I see, most of the people are employing the latter scenario

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T22:17:06+00:00Added an answer on May 19, 2026 at 10:17 pm

    In additional to using a full MVC approach, I have read about people using Zend_Rest_Server, the argument being that you don’t need to incur the overhead of the full MVC stack in order to handle such a request.

    However, if you do choose to go with handling the request via MVC, then you can use a context-switch to change the view rendered.

    However, in both cases, I believe it is generally preferable to have a service/model to access the data. This makes the access code more re-usable in other situations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im currently building a controller from my Zend MVC application which would only be
I am building a custom validator. In a controller I would get the security
I am building a model in Zend to build an object with key data,
I am building a web application with Zend Framework, and I need to point
I am working on building a PHP/Zend REST webservice and one of its methods
I am building a Zend Framework site with a conventional directory structure i.e. www.example.com/controller/action
Iam building a cloud application with google apps.While establishing a connection with cloud database
I am building a Zend Framework application that performs jobs submitted by the user.
I am building a form in Zend Framework 1.9 using subforms as well as
I am building a reporting tool and I need to execute queries on remote

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.