Codeigniter Folder Structure
Codeigniter file structure
<?= $this->include('partials/main') ?>
<head>
<?= $title_meta ?>
<?= $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">
<?= $page_title ?>
</div>
<!-- container-fluid -->
</div>
<!-- End Page-content -->
<?= $this->include('partials/footer') ?>
</div>
<!-- end main content-->
</div>
<!-- END layout-wrapper -->
<?= $this->include('partials/right-sidebar') ?>
<?= $this->include('partials/vendor-scripts') ?>
<!-- App js -->
<script src="assets/js/app.js"></script>
</body>
</html>
Layout setup
You can set the default layout in the app/views/partials/main.php
file in the html tag.
<html data-topbar="light" data-layout-width="fluid" data-sidebar="dark">
data-layout-width="fluid" | To set fluid layout width. |
---|---|
data-layout-width="boxed" | To set boxed layout width. |
data-card-layout="border" | To set border card layouts. |
data-layout-mode="light" | To set Light layout mode. |
data-layout-mode="dark" | To set dark layout mode. |
data-layout-position="fixed" | To set layout position Fixed. |
data-layout-position="scrollable" | 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-topbar="colored" | To set the color of Topbar. |