08-11-2020, 10:29 AM
hisorry for english , if i want pass data from controller to menu can i use this :
Or must i echo the view in controller ?like 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 );