CodeIgniter Forums
Dot notation support for getFlashdata() method - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29)
+--- Thread: Dot notation support for getFlashdata() method (/showthread.php?tid=78864)



Dot notation support for getFlashdata() method - MrWhite - 03-19-2021

session() global method and $session->get() method support for dot notation when accessing array elements. but getFlashdata() does not support for that.

Its very convenient if we can use getFlashdata() method like

PHP Code:
$session->getFlashdata('errors.password'

instead

PHP Code:
$session->getFlashdata('errors')['password'



RE: Dot notation support for getFlashdata() method - MGatner - 03-21-2021

I’m not sure if there are technical limitations but I would like to see this happen.


RE: Dot notation support for getFlashdata() method - InsiteFX - 03-22-2021

I think that would be a great addition to the framework.