TIME RESTRICTION FROM 8am to 5pm CI helper - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11) +--- Thread: TIME RESTRICTION FROM 8am to 5pm CI helper (/showthread.php?tid=65681) |
TIME RESTRICTION FROM 8am to 5pm CI helper - POXCOD3 - 07-11-2016 does anyone know on how to create helper that have time restriction? means my system works only at 8am to 5pm.. tnx for your answer RE: TIME RESTRICTION FROM 8am to 5pm CI helper - mwhitney - 07-12-2016 This would probably be a good use of a hook, but it depends on what you intend to do between 5PM and 8AM. The simplest thing would be to check the time and call show_error() if the system isn't supposed to be up. |