Class TipyFlash
Send data between actions
The flash concept is borrowed from Rails. It provides a way to pass temporary primitive-types (Strings, Integers, Arrays) between actions. Anything you place in the flash will be exposed to the next action. This is a great way of doing notices and alerts after redirects.
class BlogController extends TipyController { public function save() { // ...save post... $this->flash->set('Post successfully created'); $this->redirect('/blog/index'); } }
public
|
|
public
|
|
public
mixed
|