Welcome Guest, Not a member yet? Register   Sign In
include with variable (solved)
#1

(This post was last modified: 02-18-2021, 02:56 PM by neoneeco.)

Hello,

I would like to know how to pass a variable in an include.

Indeed when I do the classic way codeigniter returns me an error.


PHP Code:
                <?php if (!empty($galeries) && is_array($galeries)) :

                    foreach ($galeries as $galerie) :

                ?>
                    <?= $this->include('includes/include_card'?>

                    <?php endforeach; ?>

                <?php else : ?>

                    // No galerie

                <?php endif ?>

thank you in advance for any help!
Reply


Messages In This Thread
include with variable (solved) - by neoneeco - 02-12-2021, 10:26 AM
RE: include with variable - by InsiteFX - 02-12-2021, 12:13 PM
RE: include with variable - by neoneeco - 02-12-2021, 01:35 PM
RE: include with variable - by waleed - 02-12-2021, 08:37 PM
RE: include with variable - by nfaiz - 02-13-2021, 12:03 AM
RE: include with variable - by ikesela - 02-13-2021, 11:18 AM
RE: include with variable - by neoneeco - 02-18-2021, 02:41 AM
RE: include with variable - by paulbalandan - 02-18-2021, 09:34 AM
RE: include with variable - by neoneeco - 02-18-2021, 02:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB