what is the difference between site_url() and base_url()?

前端 未结 7 2117
南旧
南旧 2020-11-29 03:09

As I have read in some resources, base_url() and site_url() functions in codeigniter are almost the same, although my version of code

7条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-29 03:19

    base_url() that is commonly used in Codeigniter can be used even without the .php extension.

    site_url() which is commonly used in Wordpress custom template can be used even when you just call the post_title of the blog or the file name with the extension.

提交回复
热议问题