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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:26:58+00:00 2026-05-16T10:26:58+00:00

How do I extend the Zend_Controller_Request_Http, and let the application know of My_Controller_Request_Http ??

  • 0

How do I extend the Zend_Controller_Request_Http, and let the application know of My_Controller_Request_Http ??

Solution

This is how i got it working following Gordons pointers.

Firts save the following file your library: My/Controller/Request/Http.php

<?php

class My_Controller_Request_Http extends Zend_Controller_Request_Http {

    /* Add all your custom functions here */

}

In the bootstrap class i added the following.

function _initApplication ()
{
    /* Doing some other stuff here */

    $this->bootstrap('frontcontroller');
    $front = $this->getResource('frontcontroller');

    $front->setRequest('My_Controller_Request_Http');

    /* Registering some plugins here, not relevant */
}
  • 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-16T10:26:58+00:00Added an answer on May 16, 2026 at 10:26 am

    From http://framework.zend.com/manual/en/zend.controller.front.html

    setRequest() and getRequest() let you specify the request class or object to use during the dispatch process and to retrieve the current object. When setting the request object, you may pass in a request class name, in which case the method will load the class file and instantiate it.

    From API:

    Zend_Controller_Front  setRequest  (string|Zend_Controller_Request_Abstract $request) 
    

    The class can also likely (not sure) be set from a config by passing the correct values to Zend_Application_Resource_Frontcontroller

    Subclassing the Request object is explained in

    • http://framework.zend.com/manual/en/zend.controller.request.html
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i create 3 module for my proj like this: application/module/admin application/module/default application/module/error every module
I'm working on a small php application using Zend Framework. I created a form
I searched on Google, and I got this code to check if a controller
This is my query: class services extends Zend_Db_Table{ function Get_Services($user_id){ $DB = Zend_Db_Table_Abstract::getDefaultAdapter(); $select
I have a problem with setting up my Zend Framework application on live server.
I'm currently using a Zend Controller Plugin to check authentication. The following probably looks
The plugin declared in my application.ini file is not being triggered. I can install
I have the following exception Caught exception: The supplied parameters to Zend_Auth_Adapter_DbTable failed to
I've created a simple upload-form and got a little problem when submitting the data.
This is the bit of code, it's a base class for my controller that

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.