Questions tagged [flash-message]

Flash messages are used to notify the user that something has occurred. For example, a record has been created or they attempted to access something they were not authorized to do.

408 questions
3
votes
2 answers

How to set flash message in Yii2 after denied access to controller

How to set flash message in Yii2 after denied access to controller? Here is how deny access http://www.yiiframework.com/doc-2.0/yii-filters-accesscontrol.html : public function behaviors() { return [ 'access' => [ 'class' =>…
sirjay
  • 1,767
  • 3
  • 32
  • 52
3
votes
1 answer

Symfony2 flashBag empty array

I've read lots of post here in Stackoverflow about this topic but still I had no success. I'm working with Symfony version 2.2.3 and currently I'm trying to make work the flashbag messegaes in my project, but for some reason when I'm receiving an…
MSánchez
  • 446
  • 1
  • 6
  • 12
3
votes
1 answer

Connect-Flash and Express give me multiple messages but not type

I'm trying to ask a type to a multiple flash message in Connect-Flash - Express and gives me multiple string messages but not "type" In Route: app.get '/multiple-flash', (req, res) -> req.flash "info", ["Welcome", "Benvenuto"] res.redirect…
forier
  • 41
  • 3
3
votes
1 answer

flash message in Rails stays until next webpage

When I use rails' redirect_to method in a controller and pass it a notice message, everything works great. The notice is shown at the top for the page redirected to and then disappears when the next page is visited. However, if I instead set a flash…
at.
  • 50,922
  • 104
  • 292
  • 461
3
votes
1 answer

Symfony2 Flash Message Not Cleared

I'm trying for the first time to set and then display a flash message in a Symfony2 application. A flash message being set is not cleared once displayed for the first time. I set a flash message in a controller action: public function…
Jon Cram
  • 16,609
  • 24
  • 76
  • 107
3
votes
3 answers

zend framework flash messanger message and redirect

So i am creating a project using zend-framwork and i am trying to implement the flash messenger helper but i cant find any good practice to implement it. What i need is to use the flash messenger to send a message and redirect, while the message…
dori naji
  • 980
  • 1
  • 16
  • 41
2
votes
3 answers

CakePHP - Controller::flash() does not redirect

Using CakePHP 2.1 I have the following code public function getForm($id=null){ $this->loadModel('DynamicFormResponse'); /** * Check if form exists */ $this->form_schema=…
Gautam
  • 7,868
  • 12
  • 64
  • 105
2
votes
1 answer

Flash message not showing in CakePHP?

I am trying to show a flash message in my ctp. I already declared var $helpers = array('Html','Session','Form','Js'); at app_controller.php and I write the code $this->Session->setFlash("Error!!!!!!!!!") in my controller. But it doesn't show up…
Sharifah
  • 361
  • 2
  • 17
  • 30
2
votes
2 answers

React Native: Flash Message memory leak error

I am using Flash Message in React Native. A memory leak error is thrown when I navigate to another screen without waiting for the message to disappear. Code showMessage({ message: "Hello World", duration: 2000, description: "This is our second…
2
votes
0 answers

Express Flash message doesn't work with Axios but works in Postman. Why is that?

I couldn't figure out why my flash message wasn't available when testing a bad password login. Finally I figured it out; flash doesn't work with Axios. Why is it that flash-connect doesn't work with Axios but it works with Postman? I'm a noob with…
2
votes
2 answers

Ruby on Rails Flash Notice Not working properly

Flash notice is not working. I am using rails 5.1. My code is like this: def message redirect_to users_path, notice: "Message" end <% if flash.present? %> <% flash.each do |k, v| %>

<%= v %>

<% end %> <% else %> …
Kumar Nikhil
  • 99
  • 1
  • 11
2
votes
1 answer

Python DynamoDB create custom last_evaluated_key from particular table entry

we need create custom last evaluated key The use case goes Here: First scan table its having ten records,the tenth record should my last evaluated key when i do second time scan operation Thanks in advance
Robert
  • 3,373
  • 1
  • 18
  • 34
2
votes
2 answers

Flash message not showing in rails

i've some issue when trying to use flash message flash[:notice]. the flash message is not showing it's message Here is my partial form view <%= form_tag bulk_push_api_v1_notifications_path do |f| %>
2
votes
2 answers

Can't get flash message to render when using connect-flash for Node/Express app

I'm trying to render flash messages via connect-flash when users successfully login to my app. I can console log out the flash messages, but they don't seem to be getting rendered client side. However, I know for a fact that there's nothing wrong in…
doctopus
  • 5,349
  • 8
  • 53
  • 105
2
votes
1 answer

php - How to only show 1 flash message - Laravel

Hello im newbie in laravel so i really need some help. I want to create a code where only 1 flash message will show. In my case when I update user or store will appear 2 flash message "User updated successfully" and "Store updated successfully". I…
Sahat Riyanto
  • 135
  • 1
  • 3
  • 11