I got that error in before the session only. I tried a number of times to fix that error(undefined variable), after this video, I fixed that bug. Thank you...
Those who are not able to view errors as shown in the vide , check env file name , it should be ".env" instead of "env" . you will have to rename it and follow remaining steps as shown in the video. my ci4 version HP: 8.1.10 - CodeIgniter: 4.2.11 Thank you happy learning and coding , wish me luck for future. 😁