CI4: Invalid argument supplied for foreach() |
i am trying to learn CI4 as advised by @InsiteFX on given link Nice tutorials - IncludeBeer , as it is first tutorial of CI4, i am just copy & pasting page by page the included code to see the results. from page 1 to 5 it was working fine but after 6th page it is showing below error. please help what i missed or doing wrong.
![]() regards Error Log: Quote:INFO - 2022-03-31 05:14:04 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
do a var_dump($recipes), check if there's something there and it has been passed in as whatever it is expecting object/array
Practical guide to IgnitedCMS - Book coming soon, www.ignitedcms.com
hi @ignitedcms will you please guide for how to? i am following this tutorial site to Learn CI 4 , very beginner with zero experience.
regards
What I would do is comment out lines 86 -88
then write <?php var_dump($recipes); ?> First check if there's anything there.
Practical guide to IgnitedCMS - Book coming soon, www.ignitedcms.com
|
Welcome Guest, Not a member yet? Register Sign In |