Home >Backend Development >PHP Tutorial >renderforwardredirect difference redirect forward difference pay it forward put forward
render
1. Do not specify render
Result: (current models are in the controller)/(current Controller)/(current Action).phtml
2.$this->render('xxx');
Result: (current models are in the controller)/(current Controller)/xxx.phtml
3. Summary
render directly introduces the view file
forward
1.$this->forward('xxx');
Result: (The current models are in the controller)/(Current Controller)/xxxAction
2.$this->forward('xxx','Yyy');
Result: (The current models are in the controller)/ YyyController/xxxAction
3.$this->forward('xxx','Yyy','zzz');
Result: zzz/Yyy/xxxAction
4.
5. Summary
redirect can be redirected to this website or external network
').text(i)); }; $numbering.fadeIn(1700); }); });
The above introduces the difference between renderforwardredirect, including forward and render aspects. I hope it will be helpful to friends who are interested in PHP tutorials.