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 695967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:00:52+00:00 2026-05-14T03:00:52+00:00

In a classic Zend Framework MVC setup, there seems to be access to a

  • 0

In a classic Zend Framework MVC setup, there seems to be access to a generic _request object from within the model/view/controller instance as outlined here:

$this->_request->getPost('variablename');

is this request object somehow available in a non-MVC setup as well?

If yes: how would I initialize and access it?

  • 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-14T03:00:52+00:00Added an answer on May 14, 2026 at 3:00 am

    I would not use the Zend_Controller_Request_* objects outside ZF’s MVC structure (even if possible). You can see by the class name already that it belongs to the controller package and it’s API exposes a number of methods that are completely targeted at being used within ZF’s MVC and these are inherited by all subtypes.

    That’s okay when using ZF’s MVC, but for usage outside of that the Request Objects do too much. The idea of a Request object is to encapsulate and maybe decouple the current Request environment from the Superglobals (which ZF doesn’t. It just sits on top). All that extra stuff about modules, controllers and actions shouldn’t be part of it in my opinion. It makes only sense in ZF.

    Writing a Request object isn’t difficult, so I’m sure you can easily come up with a more lightweight version. Here is some basic examples:

    • http://www.phpdesignpatterns.de/auflage-2/downloads/code/PHP-Design-Pattern-Kapitel-8.zip
    • http://github.com/sebastianbergmann/php-mvc-ukernel/blob/master/Request.php
    • http://github.com/spriebsch/MVC/blob/master/src/Request.php

    In the end it’s your choice though.

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

Sidebar

Related Questions

In classic MVC the model notifies the view about changes made on it. In
In classic ASP there is a global object called Application that is accessed simultaniously
I am moving a classic asp website from a windows 2k3 server/iis6 environment to
a classic hello world example from their doc, class HelloWorld def call(env) return [200,
In classic ASP.NET Web Forms view engine, we can set the ContentType in the
In classic ADO in VB6, in a recordset that's come from an external source,
Classic ASP had 'server side includes' so that one could easily design a generic
The classic Design Patterns: Elements of Reusable Object-Oriented Software actually introduced most of us
In Classic ASP, Server.MapPath() doesn't always work properly in the Application_OnStart event within global.asa
Classic issue, new framework -- thus problem. PostgreSQL + Scala + ScalaQuery. I have

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.