Welcome Guest, Not a member yet? Register   Sign In
trying to run function just once
#3

This should work for you, not tested.

PHP Code:
protected static $runOnce true;

if (
$runOnce === true)
{
    // run your code
}
else
{
    static::$runOnce false;

What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
trying to run function just once - by richb201 - 06-21-2021, 09:06 AM
RE: trying to run function just once - by ikesela - 06-21-2021, 07:10 PM
RE: trying to run function just once - by InsiteFX - 06-21-2021, 08:44 PM
RE: trying to run function just once - by paliz - 06-22-2021, 04:19 AM
RE: trying to run function just once - by craig - 06-23-2021, 03:26 AM
RE: trying to run function just once - by paliz - 06-24-2021, 02:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB