Codeigniter Folder Structure

Codeigniter file structure

We have used gulp to compile the html, scss and js files.

<?= $this->include('partials/main') ?>

    <head>

        <?php echo view('partials/title-meta', array('title'=>'Starter')); ?>

        <?= $this->include('partials/head-css') ?>

    </head>

    <?= $this->include('partials/body') ?>

        <!-- Begin page -->
        <div id="layout-wrapper">

            <?= $this->include('partials/menu') ?>

            <!-- ============================================================== -->
            <!-- Start right Content here -->
            <!-- ============================================================== -->
            <div class="main-content">

                <div class="page-content">
                    <div class="container-fluid">

                        <div class="page-title-box">
                            <div class="row align-items-center">
                                <div class="col-md-5">
                                    <?php echo view('partials/page-title', array('pagetitle'=>'Minia', 'title'=>'Starter')); ?>
                                </div><!--end col-->
                                <div class="col-md-auto ms-auto">
                                </div><!--end col-->
                            </div><!--end row-->
                        </div>

                    </div>
                    <!-- container-fluid -->
                </div>
                <!-- End Page-content -->

                <?= $this->include('partials/footer') ?>
            </div>
            <!-- end main content-->

        </div>
        <!-- END layout-wrapper -->

        <?= $this->include('partials/vendor-scripts') ?>

        <?= $this->include('partials/right-sidebar') ?>
        <!-- App js -->
        <script src="assets/js/app.js"></script>
    </body>

</html>

Layout setup

You can set the default layout in the app/Views/partials/body.php file in the body tag.

<body data-topbar="dark" data-bs-theme="dark" data-sidebar-size="md"> 
data-layout-size="fluid" To set fluid layout size.
data-layout-size="boxed" To set boxed layout size.
data-bs-theme="light" To set Light layout mode.
data-bs-theme="dark" To set Dark layout mode.
data-layout-scrollable="false" To set layout position Fixed.
data-layout-scrollable="true" To set layout position Scrollable.
data-topbar="light" To set the Light color of Topbar.
data-topbar="dark" To set the dark color of Topbar.
data-sidebar="light" To set the Light color of sidebar.
data-sidebar="dark" To set the dark color of sidebar.
data-sidebar="brand" To set the brand color of sidebar.
data-sidebar-size="md" To set the Compact sidebar.
data-sidebar-size="lg" To set the Default sidebar.
data-sidebar-size="sm" To set the Small (Icon View) sidebar.
Β© Minia.