Skip to content

Instantly share code, notes, and snippets.

@techies23 techies23/Template Secret
Created Feb 1, 2016

Embed
What would you like to do?
/**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
You can’t perform that action at this time.