I am new to the Yii framework and I would like to know the difference between $this->render()
and $this->redirect()
.
Both can be used to retrieve a given page.
It looks like they do quite different things:
->redirect($url, ...)
redirect does a HTTP page redirect. Does not directly render a page.
->render($view, ...)
render outputs the named view. Does not terminate the current PHP request.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With