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
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