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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:38:56+00:00 2026-05-15T22:38:56+00:00

I seem to experiencing a weird error where my request params seem to be

  • 0

I seem to experiencing a weird error where my request params seem to be outdated by 1 request

my login code @ pastebin

I have tried to illustrate my point in a video @ screenr

  • 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-15T22:38:57+00:00Added an answer on May 15, 2026 at 10:38 pm

    It works exactly like it should, this is the intended behavior of FlashMessenger helper.

    What FlashMessenger does is store the messages you add in session. It only loads them from the session upon constructing a new FlashMessenger object; that is when the next request occurs. This is the whole point of FlashMessenger; to pass messages from one request to the another; not to pass messages within the same request (for that, you just use regular variables, or storage such as Zend_Registry).

    What you usually do with FlashMessenger is that you first add a message, and you then redirect to the same (or another) page, using eg. the _redirect method, or the Redirector action helper. It’s convenient to subclass the Zend_Controller class, and add your own helper method that lets you do both of these in single method, such as a method called _flash. For instance I usually do something like this:

    <?php
    
    class App_Controller extends Zend_Controller_Action
    {
        protected $_messages = array();
    
        protected function _flash($message, $to = false)
        {
            $flashMessenger = $this->_helper->getHelper('FlashMessenger');
            if ($message)
                $flashMessenger->addMessage($message);
            if (!$to)
                $to = $this->_request->getRequestUri();
            $this->_redirect($to);
        }
    
        public function postDispatch()
        {
            // Set flash messages
            $flashMessenger = $this->_helper->getHelper('FlashMessenger');
            $this->view->messages = array_merge($this->_messages, $flashMessenger->getMessages());
        }
    }
    

    I then simply do $this->_flash("My message"); which will do two things: 1) Add the message to the flash message stack and 2) Refresh the page.

    You can also see that I have a protected $_messages, the reason for this is that if I want to display a message without having to refresh the page, I can simply append a message to that array.

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

Sidebar

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.