Its actually better to check for functionality then browser sniffing. If you 
need xpath, then test for xpath capabilities.

if you must sniff for a browser, I would do it in the javascript since the user 
agent can be spoofed.

Schreck
Schreck

-----Original Message-----
From: justclint <justcl...@gmail.com>

Date: Sun, 8 Feb 2009 13:20:23 
To: CakePHP<cake-php@googlegroups.com>
Subject: Browser Detection?



I was hoping someone could tell me what the best solution is to do
browser detection in cake. Via js or php? Is there a helper for this?

All I need to do is check the browser to see if it is ie 6 or older so
I can send them to an "update your browser" page.

Ive googled this and Im not finding much.

Thanks in advance!

Clint




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to