Skip to content
blagorod edited this page Nov 6, 2013 · 7 revisions

Adding message to the queue

Attention:

Message::queue(array( 'type' => Message::NOTIFY, 'text' => 'Attention!' ));

or notification

Message::queue(array( 'type' => Message::INFO, 'text' => 'Hello from Russia!' ));

when something is succeed:

Message::queue(array( 'type' => Message::SUCCESS, 'text' => 'Data successfully saved.' ));

or goes wrong:

Message::queue(array( 'type' => Message::ERROR, 'text' => 'Oops, something goes wrong.' ));

Rendering message(s)

Place this code where you want to render them:

Message::render(array('view' => 'message/basic'));

Clone this wiki locally