CodeIgniter - Simple base_url question

后端 未结 4 1200
有刺的猬
有刺的猬 2020-12-11 13:50

I\'m a bit confused here.

I have a simple controller which loads a view. The view contains a form and links some CSS files. I don\'t really want to do ../../cs

4条回答
  •  轮回少年
    2020-12-11 14:20

    I think your problem is that base_url is a function in ci 2+ so try this instead

    
    

    It depends how you defined base_url if you did an ending slash otherwise just add a slash so

    /css/style.css
    

提交回复
热议问题