drti52047 2017-08-31 10:23
浏览 35

由于模板提供的脚本,CSS不会加载

I've been looking for the answer I seek in many posts before. But none of them worked for me.

I'm learning CI currently and want to implement it with admin panel template called Clip-Two. I will give brief explaination about my problem.

Problem : In some of my pages the CSS works fine, however in some of the pages the partially loaded.

Below is my controller called Users.php

Users.php

Within this controller, i have two functions, mainly the first one is for index, and the second one is when i want to create a user.

In the first function, the CSS works fine. All the required CSS files are loaded shown below.

Index.php Index.php

However, in the second function, which have a new page, it only load partially of the whole CSS files.

Create.php Create.php

Below is my header template

header.php

The one that I highlight is the CSS file that doesnt loaded properly.

When I inspect the elements, the file path is wrong, shown below.

Elements elements.php

Below is my config file on base_url().

Base_url()

So, I'm confused, is it my base_url() went wrong or is it something else. Any help will be appreciated. Thanks in advance!.

Sorry I made a very long post, i just want everybody have a clear picture of my problem.

EDITED I'm using admin template from Clip-Two Below is the console error shown on my page. Sorry I think my post is a bit misleading, I have edited my title and my problem

Problem : the jQuery from the template have the theme selector, so basically the jQuery could not find the path.

console

It shows that jQuery could not find the path.

Is this my problem lies on the jQuery?

  • 写回答

1条回答 默认 最新

  • douping5015 2017-08-31 10:30
    关注

    Are you sure you are not manipulating with that stylesheet using JavaScript? (You have an id identifier on tag.)

    Also, insted of <?php echo base_url()?>, try <?=base_url()?> it takes way less space.

    评论

报告相同问题?

悬赏问题

  • ¥15 多址通信方式的抗噪声性能和系统容量对比
  • ¥15 winform的chart曲线生成时有凸起
  • ¥15 msix packaging tool打包问题
  • ¥15 finalshell节点的搭建代码和那个端口代码教程
  • ¥15 Centos / PETSc / PETGEM
  • ¥15 centos7.9 IPv6端口telnet和端口监控问题
  • ¥20 完全没有学习过GAN,看了CSDN的一篇文章,里面有代码但是完全不知道如何操作
  • ¥15 使用ue5插件narrative时如何切换关卡也保存叙事任务记录
  • ¥20 海浪数据 南海地区海况数据,波浪数据
  • ¥20 软件测试决策法疑问求解答