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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:26:29+00:00 2026-05-19T02:26:29+00:00

So, I have created a Zend application following the quick start guide (so it

  • 0

So, I have created a Zend application following the quick start guide (so it has layouts, and heavy usage of application.ini configurations rather that hard-coded options) with a few changes here and there, but now I want to manipulate the output given to the browser… I’ve googled but it seems that I don’t know how to search or more importantly what to search… I want to be able to do something like:

<?php

    ob_start();

    echo 'Hello ';
    echo 'World';
    echo '!';

    $buffer = ob_get_contents();
    ob_end_clean();

    echo my_own_function($buffer);

?>

And do some TIDY, comment/space removing, etc… I mean it isn’t just that, I want to be able to do any post-processing on-the-fly. Also I wanna get my hands over the headers before are dispatched (I’m using php5.3) it is possible?

I mean which are the classes/methods that output headers and send text to the browser so it can be interpreted?

Thanks in advance.

  • 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-19T02:26:30+00:00Added an answer on May 19, 2026 at 2:26 am

    for this purpose you can write a Zend_Controller plugin.
    See the documentation here: Zend Controller Plugins.

    In your particular situation, you want to hook on the dispatchLoopShutdown method.

    How to write these plugins is described on the linked page.

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

Sidebar

Related Questions

I have following structure in my Zend-Project : -application - PDF - configs -
Ok, so I am relatively new to Zend. I have created a new application
I have just created a new zend framework application to try out unit testing.
I am trying to create application with Zend framework so I have created basic
I have created a Zend based php application. I am looking for a simple
I have an application developed in Zend Framework 1.11. I use Zend_OpenId to create
I am running Zend Framework 1.11.10 on Ubuntu 11.10. I have created 3 modules
I have created 3 classes as following Ext.mine.TextParent - Inherting from Textfield Ext.mine.child.TextChildA -
I have created a JSP / servlets application running in Tomcat 7. It runs
I have created an EDMX in visual studio 2010 SP1. It has been built

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.