CodeIgniter Forums

Full Version: TIME RESTRICTION FROM 8am to 5pm CI helper
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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.