Hi bakers,
In a simple component class i put this code:
function startup(&$controller)
{
$controller->Model->query('INSERT INTO sample VALUES(\'\',\'' .
$_SERVER['REMOTE_ADDR'] . '\',\'' . $_SERVER['HTTP_USER_AGENT'] . '\',
\'' . $now . '\')');
}
If i go in one page, i find in the sample table i find 6 records, 4
with user_agent correct and my ip address, and 2 with another ip ( i
suppose server ip), without useragent.
This controller is called in app_controller.php.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---