fokidepot.blogg.se

Zend redirector
Zend redirector












zend redirector

When this option is set, the URL specified by $ _ SERVER, $ _ SERVER, $ _ SERVER, and redirect method will be used, to form a complete URI. SetUseAbsoluteUri () forces the steering gear to use an absolute URI during redirection. SetPrependBase () adds the base address (base URL) of the request object before the URL specified by setGotoUrl (), gotoUrl (), or gotoUrlAndExit ).

zend redirector

This URL is used when no parameter is input to gotoUrl. You can input a key/value array and a vro name to organize URLs based on the type and definition of the vro. SetGotoRoute () is set based on a registered router URL. You can use APIs like Zend_Controller_Action: _ forward (): setGotoSimple ($ action, $ controller = null, $ module = null, array $ params = array ()) This URL is used when no parameter is provided to the gotoSimple () method. SetExit () force the exit () method after redirection.

Zend redirector code#

SetCode () sets the HTTP response code used during redirection. Steering gear has a large number of methods that affect redirection behavior:

zend redirector

For example, you can configure the behavior of the entire site in advance in the steering gear object, or use gotoSimple ($ action, $ controller, $ module, $ params) similar to Zend_Controller_Action: _ forward) interface. Compared with the _ redirect () method, it has multiple advantages. The Redirector assistant allows you to use a steering tool object to redirect programs to a new URL. Redirector provides another implementation method to help redirect programs to internal or external pages We will share this with you for your reference. This example describes the Zend Framework action assistant Redirector usage. For your reference, Redirector provides another implementation method to help redirect the program to an internal or external page, and Redirector) the Helper allows you to use a steering gear object to redirect the program to a new URL. This example describes the ZendFramework action assistant Redirector usage.














Zend redirector