CodeIgniter global function

后端 未结 3 1444
耶瑟儿~
耶瑟儿~ 2021-01-05 02:25

Where can I place my \"global\" function, which will check, if user is logged in?

Because I want to do something like: user is able to browse some pages only when th

3条回答
  •  情书的邮戳
    2021-01-05 03:14

    you can use MY_controller with all function needed on every page of your website. and inherit all controllers from it. read this oficial wiki

提交回复
热议问题