• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bootstrap integration with Codeigniter.

#21
(02-14-2015, 03:10 AM)hicham Wrote: thank you , note : File names must be capitalized. For example: class Boots -  class Boots.php

I use it in the header, it's available throughout CI. All classes, for example, are displayed, depending on the option, in the VS Code. See attached image.

PHP Code:
<!DOCTYPE html>
<
html lang="en">
<
head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="Private catalog of films and music">
    <
meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="shortcut icon" href="/public/img/common/<?= $icon; ?>.ico" type="image/x-icon" />
    <link rel="stylesheet" href="/public/css/bootstrap.css"> <!-- <== -->
    <link href="/public/css/header.css" rel="stylesheet">
    <link href="/public/css/<?= $css ?>.css" rel="stylesheet">
    <
title><?=$title ?></title>
    <div class="header-main-nav">
    <div class="max-header">
    <div class="main-nav">
    <div class="logo-container">
                    <a class="logo" href="/">
                    <h1 class="logo-img">wdeda</h1>
                    </a>
    </div>
    <div class="search-container">
        <form action="<?= $action ?>" class="site-search" method="post" name="site-search">
            <input class="site-search-button" name="wdeda" type="submit" />
            <input class="site-search-input" name="search" placeholder="Search" tabindex="1" type="search" />
        </form>
    </div>
        <nav class="site-nav">
            <ul>
                <li class="blog">
                    <a href="/blog/">Blog</a>
                </li>
                <li class="backups">
                    <a href="/ci4/backups">Backups</a>
                </li>
                <li class="tools">
                    <a href="/tools">Tools</a>
                </li>
                
                <li class="empty1">
                    <a href="/">CI3</a>
                </li>
            </ul>
        </nav>
    </div>
    </div>
    </div>
</head>
<body> 


Attached Files Thumbnail(s)
   
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.