开发者

CodeIgniter use base_url() in helper

开发者 https://www.devze.com 2023-02-05 15:45 出处:网络
I am creating a new helper ,so that I can reuse it in views, etc .. can I use base_url()开发者_高级运维 in the helper ?

I am creating a new helper ,so that I can reuse it in views, etc .. can I use base_url()开发者_高级运维 in the helper ?

Thanks


Yes you can use base_url() in helper. Make sure url_helper is loaded before using base_url().

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号