$ip = $_SERVER['REMOTE_ADDR'];
$checkip = Model\Limit::find_by_ip($ip);
if ($checkip) {
$checkip->cnt = +1;
$checkip->save();
}else
{
$limit = new Model\Limit;
$limit->ip = $ip;
$limit->cnt = '1';
$limit->save();
}
$checkip->cnt = +1; 不工作。将 +1 加到当前值