Yii Framework Forum: Redirect Interrupts Firebug Output - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Redirect Interrupts Firebug Output redirect and firebug Rate Topic: -----

#1 User is offline   aNightOne 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 8
  • Joined: 04-May 12

Posted 12 May 2013 - 08:18 AM

It seems any Firebug output is lost if the controller redirects.

If I call actionTwo() here Firebug shows the output correctly:

    public function actionIndex()
	{
		$this->render('index');
	}

    public function actionTwo()
    {
        Fire::log()->info('called in the actionTwo controller');

        $this->render('index');

        //$this->redirect(array('index'));

    }


However, if I redirect to another action and call actionTwo():

    public function actionIndex()
	{
		$this->render('index');
	}

    public function actionTwo()
    {
        Fire::log()->info('called in the actionTwo controller');

        //$this->render('index');

        $this->redirect(array('index'));

    }


Firebug shows nothing. Why is this?
0

#2 User is offline   Tsunami 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 150
  • Joined: 16-February 12

Posted 12 May 2013 - 10:10 AM

Because Firebug clears the console when a new page is loaded. So if you want to see any output, don't redirect.

Or use the Persist button in the Console tab.
0

#3 User is offline   aNightOne 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 8
  • Joined: 04-May 12

Posted 12 May 2013 - 10:18 AM

That is what is weird, even using the persist button FireBug still makes no mention of it.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users