Skip to content

Instantly share code, notes, and snippets.

View JakubJarabica's full-sized avatar

Jakub Jarabica JakubJarabica

View GitHub Profile
@fprochazka
fprochazka / HomepagePresenter.php
Created June 2, 2011 05:55 — forked from vaclavbohac/HomepagePresenter.php
Mobile device detection in Nette
<?php
class HomepagePresenter extends BasePresenter
{
public function actionDefault()
{
$detector = $this->context->detector;
if ($detector->isMobile()) {
$this->redirect("mobile");