How to integrate html_bootstrap template in cakephp 3.5


#1

i want to know how to integrate a html template in cakephp 3.5, i putted css, js, img file under webroot folder of cakephp 3


#2

If you want to use bootstrap in all views load css js in src/Layout/default.ctp

echo $this->Html->css([
            'bootstrap.min',
            'jquery.min'
     ]);

echo $this->Html->script([
            'jquery.min',
            'bootstrap.min',
    ]);

other solution bootstrap plugin:


#3

thank you very much, can you provide me information about how to integrate html template in cakephp


#4

src/Layout/default.ctp is the main layout, the controller actions views are rendered inside this via
<?php echo $this->fetch('content'); ?>

see if it helps: