CodeIgniter Forums
Navigation - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Navigation (/showthread.php?tid=65231)



Navigation - davy_yg - 05-18-2016

What is the difference between:

http://127.0.0.1/CompanyProfileCI

and

http://localhost/CompanyProfileCI


Why on the top does not works well.  And the one on the bottom does not works well detecting my navigation bar.


views/index.php

PHP Code:
<!DOCTYPE html>
<
html lang="en">
    <
head>
        <
title>Gionda CMS</title>
        <
meta charset="UTF-8" />
 
       <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <
link rel="stylesheet/less" type="text/css" href="<?php echo base_url(); ?>assets/themes/less/bootstrap.less">
        <
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>
    
    <?
php include('navigation.php'); ?>



RE: Navigation - arma7x - 05-18-2016

Have you define $config['base_url'] value in config.php files(inside config folder)


RE: Navigation - davy_yg - 05-18-2016

* I mean the top does works well but not the bottom code.

$config['base_url'] = 'http:\\localhost';

I already try:  
http://localhost/CompanyProfileCI

The navigation still appears to be error.  How to make: 

http://127.0.0.1/CompanyProfileCI

equals to http://localhost/CompanyProfileCI ?