CodeIgniter Forums
how to return array of data to controller from filter - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: how to return array of data to controller from filter (/showthread.php?tid=78991)



how to return array of data to controller from filter - fdev - 04-05-2021

Is there a way to return data to controller constructor from filter? I am trying to conserve db calls in verifying it if user is authorized to view on a filter, but had to db call again in constructor.