browser Detect a user's browser

  1. Documentation
  2. Change Log

Browser is a simple wraper for the Browser Class, which is included.

Check the Browser Class often for new browsers or platforms.

This a very, very quick alpha release. Recomendations, comments, bugs are welcome but please use the forum.

Documentation

Requirements
  • Yii 1.1.1 (only tested with this version).
Installation
  • Extract the release file under protected/extensions
Usage

In your config.php file, in the components section, add the following:

'browser' => array(
    'class' => 'application.extensions.Browser.CBrowserComponent',
),

Then, in your controller or view, use it like this:

$browser = Yii::app()->browser->getBrowser();
$platform = Yii::app()->browser->getPlatform();

Change Log

April 4, 2010
  • Initial release.
9 0
12 followers
2 402 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Others
Developed by: transistor
Created on: Apr 5, 2010
Last updated: 3 years ago

Downloads

show all

Related Extensions