Redirect Library



( 0, 191, 255)">ZN >= 3.0.0 )

Used for forwarding.

 

 

0, 191, 255)"># Methods


0, 187, 208); font-family:consolas,monospace">void action ( 0, 187, 208); font-family:consolas,monospace">String 252, 155, 155); font-family:consolas,monospace">$ action )
0, 187, 208); font-family:consolas,monospace">this time ( 0, 187, 208); font-family:consolas,monospace">Int 252, 155, 155); font-family:consolas,monospace">$ time = 199, 37, 78)">230, 42, 90); font-family:consolas,monospace">0 )
0, 187, 208); font-family:consolas,monospace">this wait ( 0, 187, 208); font-family:consolas,monospace">Int 252, 155, 155); font-family:consolas,monospace">$ time = 199, 37, 78)">230, 42, 90); font-family:consolas,monospace">0 )
0, 187, 208); font-family:consolas,monospace">this data ( 0, 187, 208); font-family:consolas,monospace">Array 252, 155, 155); font-family:consolas,monospace">$ data )
0, 187, 208); font-family:consolas,monospace">this insert ( 0, 187, 208); font-family:consolas,monospace">Array 252, 155, 155); font-family:consolas,monospace">$ data )
0, 187, 208); font-family:consolas,monospace">Mixed select ( 0, 187, 208); font-family:consolas,monospace">String 252, 155, 155); font-family:consolas,monospace">$ key )
0, 187, 208); font-family:consolas,monospace">Bool delete ( 0, 187, 208); font-family:consolas,monospace">Mixed 252, 155, 155); font-family:consolas,monospace">$ key, Bool $isDelete = false)
0, 187, 208); font-family:consolas,monospace">void location ( 0, 187, 208); font-family:consolas,monospace">String 252, 155, 155); font-family:consolas,monospace">$ url , 0, 187, 208); font-family:consolas,monospace">Int 252, 155, 155); font-family:consolas,monospace">$ time = 199, 37, 78)">230, 42, 90); font-family:consolas,monospace">0 , 0, 187, 208); font-family:consolas,monospace">Array 252, 155, 155); font-family:consolas,monospace">$ data = 199, 37, 78)">230, 42, 90); font-family:consolas,monospace">[] , 0, 187, 208); font-family:consolas,monospace">Bool 252, 155, 155); font-family:consolas,monospace">$ exit = 199, 37, 78)">0, 187, 208); font-family:consolas,monospace">230, 42, 90); font-family:consolas,monospace">false )
0, 187, 208); font-family:consolas,monospace">void refresh ( 0, 187, 208); font-family:consolas,monospace">String 252, 155, 155); font-family:consolas,monospace">$ url , 0, 187, 208); font-family:consolas,monospace">Int 252, 155, 155); font-family:consolas,monospace">$ time = 199, 37, 78)">230, 42, 90); font-family:consolas,monospace">0 , 0, 187, 208); font-family:consolas,monospace">Array 252, 155, 155); font-family:consolas,monospace">$ data = 199, 37, 78)">230, 42, 90); font-family:consolas,monospace">[] , 0, 187, 208); font-family:consolas,monospace">Bool 252, 155, 155); font-family:consolas,monospace">$ exit = 199, 37, 78)">0, 187, 208); font-family:consolas,monospace">230, 42, 90); font-family:consolas,monospace">false )

 

 

0, 191, 255)"># Action ( 0, 191, 255)">ZN> = 3.0.0 )


The forwarding address is specified. URL or URI information can be entered.

Parameters

0, 187, 208); font-family:consolas,monospace">String 252, 155, 155); font-family:consolas,monospace">$ Action URL or URI information.
return 0, 187, 208); font-family:consolas,monospace">void

Use of

0, 187, 208); font-family:consolas,monospace">Redirect::action(169, 185, 50); font-family:consolas,monospace">'home/contact');

 

 

0, 191, 255)"># Wait / Time ( 0, 191, 255)">ZN >= 3.0.0 )


Routing duration is specified. Both methods assume the same task.

Parameters

0, 187, 208); font-family:consolas,monospace">Int 252, 155, 155); font-family:consolas,monospace">$ Time Wait time in seconds.
return 0, 187, 208); font-family:consolas,monospace">this

Use of

0, 187, 208); font-family:consolas,monospace">Redirect::wait(230, 42, 90); font-family:consolas,monospace">3)->action(169, 185, 50); font-family:consolas,monospace">'home/contact'); // wait 230, 42, 90); font-family:consolas,monospace">3 second

 

 

0, 191, 255)"># Data / Insert ( 0, 191, 255)">ZN >= 3.0.0 )


With routing, the articles to be sent are determined. Both methods assume the same task.

Parameters

0, 187, 208); font-family:consolas,monospace">Array 252, 155, 155); font-family:consolas,monospace">$ data The sender is given.
return 0, 187, 208); font-family:consolas,monospace">this

Use of

0, 187, 208); font-family:consolas,monospace">Redirect::insert([169, 185, 50); font-family:consolas,monospace">'data' => 169, 185, 50); font-family:consolas,monospace">'Data'])->wait(230, 42, 90); font-family:consolas,monospace">3)->action(169, 185, 50); font-family:consolas,monospace">'home/contact');

 

 

0, 191, 255)"># Select ( 0, 191, 255)">ZN >= 3.0.0 )


Forwarding is for using the incoming data. This method is used in the page where the routing result is going.

Parameters

3.0.0 String $key Data key.
5.7.0 Bool $isDelete = false Are you sure you want to delete the data after you output? If this parameter is set to true, the data is cleared when displayed.
Return Mixed

Use of

0, 187, 208); font-family:consolas,monospace">Redirect::select(169, 185, 50); font-family:consolas,monospace">'data');
45, 81, 115); border-image: none; color: rgb(44, 80, 114); line-height: 1.7; font-family: consolas,monospace; font-size: 14px; margin-bottom: 10px; background-color: rgb(255, 255, 255);">Data
115, 139, 156); line-height: 1.7; padding-bottom: 10px; font-size: 16px; font-weight: bold; margin-top: 20px; margin-bottom: 10px; border-bottom-color: rgb(237, 237, 237); border-bottom-width: 1px; border-bottom-style: solid;">5.7.0 Update

With this update, data can be deleted after setting the 2nd parameter to true after outputting 1 time.

echo Redirect::select('data', true);
45, 81, 115); border-image: none; color: rgb(44, 80, 114); line-height: 1.7; font-family: consolas,monospace; font-size: 14px; margin-bottom: 10px; background-color: rgb(255, 255, 255);">Data

 

 

0, 191, 255)"># Delete ( 0, 191, 255)">ZN> = 3.0.0 )


Forwarding is for deleting the incoming data.

Parameters

0, 187, 208); font-family:consolas,monospace">Mixed 252, 155, 155); font-family:consolas,monospace">$ data Data or data to delete. If more than one data is to be deleted, you can specify the string as a parameter.
return 0, 187, 208); font-family:consolas,monospace">Bool

Use of

0, 187, 208); font-family:consolas,monospace">Redirect::delete(169, 185, 50); font-family:consolas,monospace">'data');
0, 187, 208); font-family:consolas,monospace">Redirect::delete([169, 185, 50); font-family:consolas,monospace">'data', 169, 185, 50); font-family:consolas,monospace">'example']);

 

 

0, 191, 255)"># Location ( 0, 191, 255)">ZN> = 3.0.0 )


It is used to refresh the page after a certain period of time or to redirect to another page.

Parameters

0, 187, 208); font-family:consolas,monospace">String 252, 155, 155); font-family:consolas,monospace">$ uri Where to lead.
0, 187, 208); font-family:consolas,monospace">Int 252, 155, 155); font-family:consolas,monospace">$ time = 230, 42, 90); font-family:consolas,monospace">0 Wait time in seconds.
0, 187, 208); font-family:consolas,monospace">Array 252, 155, 155); font-family:consolas,monospace">$ data = 230, 42, 90); font-family:consolas,monospace">[] Data to be sent.
0, 187, 208); font-family:consolas,monospace">Bool 252, 155, 155); font-family:consolas,monospace">$ exit = 0, 187, 208); font-family:consolas,monospace">230, 42, 90); font-family:consolas,monospace">false Continue page code streaming?   
return 0, 187, 208); font-family:consolas,monospace">void

Use of

0, 187, 208); font-family:consolas,monospace">Redirect::location(169, 185, 50); font-family:consolas,monospace">'profile', 230, 42, 90); font-family:consolas,monospace">2);

 

 

0, 191, 255)"># Refresh ( 0, 191, 255)">ZN >= 5.5.30 )


It is used to refresh the page after a certain period of time or to redirect to another page. 0, 187, 208); font-family:consolas,monospace">The difference from Redirect :: location () is that page codes are compiled during the wait time.

Parameters

0, 187, 208); font-family:consolas,monospace">String 252, 155, 155); font-family:consolas,monospace">$ uri Where to lead.
0, 187, 208); font-family:consolas,monospace">Int 252, 155, 155); font-family:consolas,monospace">$ time = 230, 42, 90); font-family:consolas,monospace">0 Wait time in seconds.
0, 187, 208); font-family:consolas,monospace">Array 252, 155, 155); font-family:consolas,monospace">$ data = 230, 42, 90); font-family:consolas,monospace">[] Data to be sent.
0, 187, 208); font-family:consolas,monospace">Bool 252, 155, 155); font-family:consolas,monospace">$ exit = 0, 187, 208); font-family:consolas,monospace">230, 42, 90); font-family:consolas,monospace">false Continue page code streaming?   
return 0, 187, 208); font-family:consolas,monospace">void

Use of

0, 187, 208); font-family:consolas,monospace">Redirect::refresh(169, 185, 50); font-family:consolas,monospace">'profile', 230, 42, 90); font-family:consolas,monospace">2);