• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Activating the stylesheet

#1
Hello,

I am in the middle of building ecommerce cms backend and I am facing trouble activating the stylesheet.  I wonder why?

Check my codes here:



views/index.php


PHP Code:
<!DOCTYPE html>
<
html lang="en">
    <
head>
        <
title>Gionda Ecommerce CMS</title>
        <
meta charset="UTF-8" />
 
       <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <
link rel="stylesheet/less" href="<?php echo base_url(); ?>assets/themes/less/bootstrap.less" type="text/css">
        <
script src="<?php echo base_url(); ?>assets/themes/js/less/less.js" type="text/javascript"></script>
        <
link rel="stylesheet" href="<?php echo base_url(); ?>assets/themes/style/fullcalendar.css" />    

        <
link rel="stylesheet" href="<?php echo base_url(); ?>assets/themes/style/delta.main.css" />
        <
link rel="stylesheet" href="<?php echo base_url(); ?>assets/themes/style/delta.grey.css"/>
        
        <
link rel="stylesheet" href="<?php echo base_url(); ?>assets/themes/style/add.css"/>
        
    </
head>
    <
body>
    <
br>
    <
div id="sidebar"
        <
h1 id="logo"><a href="index.php">Free Admin</a></h1 
        
<a href="#" class="visible-phone"><class="icon icon-home"></iDashboard</a>
        <
ul>
            <
li class="active"><a href="index.php"><class="icon icon-home"></i> <span>Administrator</span></a></li>
            <
li class="submenu">
                <
a href="#"><class="icon icon-th-list"></i> <span>Categories</span> <span class="label">2</span></a>
                <
ul>
                    <
li><a href="<?php echo site_url('cpages/pcategories'); ?>">Parent categories</a></li>
                    <
li><a href="<?php echo site_url('cpages/scategories'); ?>">Sub Categories</a></li>
                </
ul>
            </
li>
            <
li><a href="<?php echo site_url('cpages/clients'); ?>"><class="icon icon-tint"></i> <span>Clients</span></a></li>
            <
li><a href="<?php echo site_url('cpages/orders'); ?>"><class="icon icon-pencil"></i> <span>Orders</span></a></li>
            <
li><a href="<?php echo site_url('cpages/products'); ?>"><class="icon icon-th"></i> <span>Products</span></a></li>
            <
li><a href="<?php echo site_url('cpages/reviews'); ?>"><class="icon icon-th-list"></i> <span>Reviews</span></a></li>
            <
li>
                <
a href="<?php echo site_url('cpages/coupons'); ?>"><class="icon icon-file"></i> <span>Coupons</span></a>
            </
li>
            <
li class="submenu">
                <
a href="<?php echo site_url('cpages/payments'); ?>"><class="icon icon-file"></i> <span>Payments</span><span class="label">4</span></a>
                <
ul>
                    <
li><a href="#">Paypal</a></li>
                    <
li><a href="#">Credit Cards</a></li>
                    <
li><a href="#">Cash On Delivery</a></li>
                    <
li><a href="#">Bank Transfer</a></li>
                </
ul>
            </
li>
            <
li>
                <
a href="<?php echo site_url('cpages/system'); ?>"><class="icon icon-inbox"></i> <span>System</span></a>
            </
li>
            <
li>
                <
a href="<?php echo site_url('cpages/newsletter'); ?>"><class="icon icon-inbox"></i> <span>Newsletter</span></a>
            </
li>
            <
li>
                <
a href="<?php echo site_url('cpages/seo'); ?>"><class="icon icon-inbox"></i> <span>Seo</span></a>
            </
li>
            <
li>
                <
a href="<?php echo site_url('cpages/logout'); ?>"><class="icon icon-inbox"></i> <span>Logout</span></a>
            </
li>
        </
ul>
    </
div>
     
 <div id="mainBody">
            <
h1>BESTSHOP ECOMMERCE CMS
                
<div class="pull-right">
                <
class="btn btn-large tip-bottom" title="Manage Users"><class="icon-user"></i></a>
                <
class="btn btn-large tip-bottom" title="Manage Comments" style="position:relative"><class="icon-comment"></i>
                <
span style="position:absolute; border-radius:12px; top:-23%; height:16px; width:16px" class="label label-important">5</span></a>
                <
class="btn btn-large tip-bottom" title="Manage Orders"><class="icon-shopping-cart"></i></a>
                <
class="btn btn-large btn-danger" title="" href="#"><class="icon-off"></i></a>
                </
div>
            </
h1>
        <
div id="breadcrumb">
            <
a href="#" title="Go to Home" class="tip-bottom"><class="icon-home"></iHome</a>
            <
a href="#" class="current">Dashboard</a>
        </
div>
        
            <
div class="row-fluid">
                <
div class="span12">
                    
                    <
button type="button" class="add" href="adminform.php">ADD ADMINISTRATOR</button
                    
                    <
div class="widget-box">
                        <
div class="widget-title"><h5>Administrator</h5></div>
                        <
div class="widget-content">
                        
                        <
table border="0" style="width: 100%; height: 90px;">
                            <
tr>
                                <
td>NAME</td>
                                <
td>EMAIL</td>
                                <
td>ROLE</td>
                                <
td>EDIT</td>
                                <
td>DELETE</td>    
                            </
td>
                            <
tr>
                                <
td>Victor</td>
                                <
td>victor@mail.com</td>
                                <
td>Administrator</td>
                                <
td><button type="button" class="edit" href="adminform.php">EDIT</button></td>
                                <
td><button type="button" class="delete" href="adminform.php">DELETE</button></td>    
                            </
td>    
                            <
tr>
                                <
td>David</td>
                                <
td>david@mail.com</td>
                                <
td>Manager</td>
                                <
td><button type="button" class="edit" href="adminform.php">EDIT</button></td>
                                <
td><button type="button" class="delete" href="adminform.php">DELETE</button></td>    
                            </
td>    
                        </
table>            
                        </
div>
                    </
div>                    
                </
div>
            </
div>
            
            
        </
div>
        </
div>

 
           <script src="<?php echo base_url(); ?>assets/themes/js/excanvas.min.js"></script>
 
           <script src="<?php echo base_url(); ?>assets/themes/js/jquery.min.js"></script>
 
           <script src="<?php echo base_url(); ?>assets/themes/js/jquery.ui.custom.js"></script>
 
           <script src="<?php echo base_url(); ?>assets/themes/js/bootstrap.min.js"></script>
 
           <script src="<?php echo base_url(); ?>assets/themes/js/jquery.flot.min.js"></script>
 
           <script src="<?php echo base_url(); ?>assets/themes/js/jquery.flot.resize.min.js"></script>
 
           <script src="<?php echo base_url(); ?>assets/themes/js/jquery.peity.min.js"></script>
 
           <script src="<?php echo base_url(); ?>assets/themes/js/fullcalendar.min.js"></script>
 
           <script src="<?php echo base_url(); ?>assets/themes/js/delta.js"></script>
 
           <script src="<?php echo base_url(); ?>assets/themes/js/delta.dashboard.js"></script>
            
    </
body>
</
html




controllers/cpages.php


PHP Code:
<?php
defined
('BASEPATH') OR exit('No direct script access allowed');

class 
Cpages extends CI_Controller {

    
/**
     * Index Page for this controller.
     *
     * Maps to the following URL
     *         http://example.com/index.php/welcome
     *    - or -
     *         http://example.com/index.php/welcome/index
     *    - or -
     * Since this controller is set as the default controller in
     * config/routes.php, it's displayed at http://example.com/
     *
     * So any other public methods not prefixed with an underscore will
     * map to /index.php/welcome/<method_name>
     * @see https://codeigniter.com/user_guide/general/urls.html
     */
     
    
public function __construct()
    {
        
        
parent::__construct();
        
        
$this->load->helper('url');
        
$this->load->helper('url_helper');
        
        
$this->load->database();
                
        
    }
     
    public function 
index() {  $this->load->view('index'); }
    
    public function 
clients() { $this->load->view('clients'); }
    
    public function 
categories() { $this->load->view('categories'); }
    
    public function 
pcategories() { $this->load->view('pcategories'); }
    
    public function 
scategories() { $this->load->view('scategories'); }
    
    public function 
orders() { $this->load->view('orders'); }
    
    public function 
products() { $this->load->view('products'); }

    public function 
reviews() { $this->load->view('reviews'); }

    public function 
coupons() { $this->load->view('coupons'); }

    public function 
payments() { $this->load->view('payments'); }

    public function 
system() { $this->load->view('system'); }

    public function 
seo() { $this->load->view('seo'); }    
    
    public function 
logout() { $this->load->view('logout'); }
    
}

?>
" If I looks more intelligence please increase my reputation."
Reply

#2
Are you sure you should be building an eCommerce CMS if you require this much help with basic HTML and PHP?

Maybe start smaller to learn the basics before tackling something involving payments.

As for your question, just Inspect/View Source of the webpage and see the CSS path it's generating. Check it against where the CSS file is stored - you may be missing a / or maybe it's just altogether wrong?
Reply

#3
Look at your base_url()
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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