CodeIgniter - Simple base_url question

后端 未结 4 1192
有刺的猬
有刺的猬 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:28

    for CI 2+ you can add $this->load->helper('url'); before you load the view and then add into your view file.

提交回复
热议问题