mobile detection Global var, for mobile first css

Discuss everything related to ApPHP MVC Framework. All versions. Any questions related to the Framework developing or using should be posted to this forum.

Moderators: alexandrleonenko, alexmst

paragate
Master
Master
Posts: 151
Joined: Nov 13th, '14, 13:04
Location: Denmark, Odense

mobile detection Global var, for mobile first css

Postby paragate » May 8th, '17, 07:42

hi,
do mvc framework have an Global variable for mobiledetection already set like

Code: Select all

$mobileDetect = A::app()->getMobileDetect();
  $mobileD              = $mobileDetect->isMobile() == true  ? true : false;


OR
do we have to set it somewhere ourself?
Regards

ne_moj
Master
Master
Posts: 243
Joined: Jan 1st, '16, 14:11

Re: mobile detection Global var, for mobile first css

Postby ne_moj » May 8th, '17, 09:19

Hello

A::app()->getMobileDetect(); works without presets


Return to “ApPHP MVC Framework {developers/users}”