Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // BasePresenter
- public function beforeRender()
- {
- parent::beforeRender();
- if ($this->isAjax()) {
- $this->invalidateControl('flashmessage');
- }
- }
- // @layout.latte
- {snippet flashmessage}
- <div n:foreach="$flashes as $flash" class="flash {$flash->type}">{$flash->message}</div>
- {/snippet}
- // Presenter
- if ($this->isAjax()) {
- $this->flashMessage('test', 'error');
- }
Add Comment
Please, Sign In to add comment