Welcome Guest, Not a member yet? Register   Sign In
Passing data from controller to menu
#1

hisorry for english , if i want pass data from controller to menu can i use this :

PHP Code:
<?= $this->include('templates/head'?>
<body>
    <?= $this->include('templates/menu'?>
    <div class="container py-3">
        <?= $this->renderSection('content'?>
    </div>
<?= $this->include('templates/footer'?>

Or must  i echo the view in controller ?like this:

 
PHP Code:
echo view('templates/header_client',$data );
echo view('templates/menu_client',$data );

echo view('myViewFolder/myView',$data );

echo 
view('templates/footer_client',$data ); 
Reply


Messages In This Thread
Passing data from controller to menu - by pippuccio76 - 08-11-2020, 10:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB