Skip to content

Instantly share code, notes, and snippets.

@techies23
Created February 1, 2016 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techies23/e14894f00562da49a8a6 to your computer and use it in GitHub Desktop.
Save techies23/e14894f00562da49a8a6 to your computer and use it in GitHub Desktop.
/**INSIDE header.php **/
<!DOCTYPE html>
<html>
<head>
<title><?php echo $site_title; ?></title>
<!-- Bootstrap core CSS -->
<link href="<?php echo site_url() . '/css/bootstrap.min.css'; ?>" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="<?php echo site_url() . '/css/sigin.css'; ?>" rel="stylesheet">
<script type="text/javascript" src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body class="login">
<!--END-->
/**INSIDE FOOTER.PHP **/
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="<?php echo site_url() . '/js/bootstrap.min.js'; ?>"></script>
</body>
</html>
/**INSIDE _layout_login.php **/
<?php $this->load->view('layouts/header.php'); ?>
<div class="container">
<?php $this->load->view($subview); // Subview is set in controller ?>
</div>
<footer id="footer">
<div class="text-center padder">
<p> <small>&copy; <?php echo date('Y'); ?> <?php echo $site_title; ?></small></p>
</div>
</footer>
</body></html>
<?php
/**
* Contributor: Deepen
* Author: Deepen
*/
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment