site_url() is not work properly in codeigniter framework

后端 未结 3 1002
星月不相逢
星月不相逢 2021-01-23 10:34

The following code does not work properly for the Codeigniter framework...

Its my View:

\'.$news_item[\'title\'].\'         


        
3条回答
  •  无人共我
    2021-01-23 11:09

    You should have loaded the url_helper in your controller construct method or in the function that calls your view like this $this->load->helper('url') and then in your view you should echo the site_url()

    " > Back to Main 

    `

提交回复
热议问题