点击菜单错误不会显示页面

时间:2016-10-29 05:42:07

标签: codeigniter

有什么区别:

http://localhost/gsa/profile/history - > (脱机)

http://www.gsa-constructionspecialist.com/profile/history(在线)

离线显示:

  

未找到

     

在此服务器上找不到请求的URL / gsa / profile / history。

点击此菜单后:

视图/ 0hearder.php

  <div id="menu">
        <a href="<?php echo site_url(); ?>"><h3 class="listmenu" data="1" data-title="home">Home</h3></a>
        <h3 class="listmenu" data="2" data-title="profile">Home</h3>
            <div class="submenu2" style="display:none">
            <?php
                $profile = $this->post_model->post(1);
                if ($profile){
                foreach ($profile as $pro){
            ?>
                <a href="<?php echo site_url('profile/'.$pro->post_alias); ?>"><h3 class="submenu" style="<?php echo ($this->uri->segment(2)==$pro->post_alias)?'font-weight:bold':''; ?>"><?php echo $pro->post_title; ?></h3></a>
            <?php } } ?>
            </div>

0 个答案:

没有答案