What is the use of Model and View folder...?

I am using cakephp 3.6.7 , what i know is this is MVC framework right…?

but i am using only controller and Layout… and created separate folder under template to body of the page…

anyone tell me what is the use of Model and View Folder… i am not using right now…

is there anything wrong…?

View check this link it can help you.

i am using latout / default.ctp file like this…

<?php $cakeDescription = 'CakePHP: the rapid development php framework'; ?>
<?= $this->Html->charset() ?>
<?= $cakeDescription ?>:
<?= $this->fetch('title') ?>
<?= $this->Html->meta('icon') ?>
<?= $this->Html->css(['bootstrap.min.css','font.css','font-awesome.css','jqvmap.css','lightbox.css','minimal.css','monthly.css','morris.css','style-responsive.css','style.css']) ?>


<?= $this->Html->css('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css') ?>

 <?= $this->Html->script(['jquery2.0.3.min.js','raphael-min.js','morris.js'	]) ?>



<?= $this->fetch('meta') ?>


<?= $this->Html->script(['monthly.js','jquery.scrollTo.js','jquery.nicescroll.js','jquery.slimscroll.js','scripts.js','jquery.dcjqaccordion.2.7.js','bootstrap.js']) ?>

<?= $this->fetch('scriptBottom') ?>
<?= $this->Flash->render() ?>

<?= $this->fetch('content') ?>
</footer>

Separating your code for meet the MVC pattern has a lot of advantages, and you can read about this in a lot of articles and blog posts.

In summary when you communicate with your database, that is the model. Displaying the page to the user is view, and what connects them is controller.

The other term what you should read about is fat model.

I would reccomend to read about these, understand the concepts, than bake your models, controllers and views and inspect the code and try to understand.

i putted display page to the user i.e body tag right …?
i putted in template… is that wrong…?

That is right. In the view you should not do any database access, calculation, or business logic. View is only displaying.

what kind of value can i put…?

can u give any ex: please…

As I mentioned just bake your application and inspect the code. That is the best start.
https://book.cakephp.org/3.0/en/bake/usage.html