亚洲免费乱码视频,日韩 欧美 国产 动漫 一区,97在线观看免费视频播国产,中文字幕亚洲图片

      1. <legend id="ppnor"></legend>

      2. 
        
        <sup id="ppnor"><input id="ppnor"></input></sup>
        <s id="ppnor"></s>

        zend framework重定向方法小結(jié)

        字號(hào):


            本文總結(jié)了zend framework重定向的方法。分享給大家供大家參考,具體如下:
            一. render
            不指定render
            結(jié)果: {當(dāng)前Module}/{當(dāng)前Controller}/{當(dāng)前Action}.phtml
            $this->render('bar');
            結(jié)果: {當(dāng)前Module}/{當(dāng)前Controller}/bar.phtml
            二. forward
            $this->_forward('bar');
            結(jié)果: {當(dāng)前Module}/{當(dāng)前Controller}/bar
            $this->_forward('bar', 'foo');
            結(jié)果: {當(dāng)前Module}/foo/bar
            $this->_forward('bar', 'foo', 'hoge');
            結(jié)果: hoge/foo/bar
            $params = array(
             'a' => '1',
             'b' => '2'
            );
            $this->_forward('bar', 'foo', 'hoge', $params);
            結(jié)果: /hoge/foo/bar/a/1/b/2
            三. redirect
            $this->_redirect('/hoge');
            結(jié)果: /hoge
            $this->_redirect('/hoge/foo');
            結(jié)果: /hoge/foo
            $this->_redirect('/hoge/foo/bar');
            結(jié)果: /hoge/foo/bar
            $this->_redirect('http://localhost/hoge/foo/bar');
            結(jié)果: http://localhost/hoge/foo/bar
            $this->_redirect('http://localhost/hoge/foo/bar?a=1&b=2');
            結(jié)果: http://localhost/hoge/foo/bar?a=1&b=2
            四. 特殊情況
            不使用 layout
            結(jié)果:
            $this->_helper->layout()->disableLayout();
            不使用 view
            結(jié)果:
            $this->_helper->viewRenderer->setNoRender();
            希望本文所述對(duì)大家基于Zend Framework框架的PHP程序設(shè)計(jì)有所幫助。