Welcome Guest, Not a member yet? Register   Sign In
Simple Flashdata extension to retrieve array of flashadata based on key.
#4

[eluser]Grimbog[/eluser]
[quote author="marcogmonteiro" date="1340358723"]So with this I'll be able to have 2 flashdata messages of the same type?

I can do this?
Code:
set_notification( 'The login you provided appears to be invalid.', 'warning');
set_notification( 'The password you provided appears to be invalid.', 'warning');

[/quote]

Hey Marco,

Yes, because the global array keys for notifications are created on the fly (0,1,2 etc.), and then merged with the multiarray key name (notifications), so it creates a new key using both the numeric and string keys (notifications1). This is then sent to userdata as '[flash:old:notifications0], [flash:old:notifications1]' etc. etc.


Messages In This Thread
Simple Flashdata extension to retrieve array of flashadata based on key. - by El Forum - 06-22-2012, 03:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB