O'Reilly logo

Yii Rapid Application Development Hotshot by James R. Hamilton III, Lauren J. O'Meara

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a Mobile View

In this section, we will make a mobile view. We can test our handiwork by using the URL mobile to turn the mobile version of the layout on and off. In addition to this, we are going to add attributes to elements in our layouts to make them function properly with jQuery Mobile and make our mobile view look even better. jQuery Mobile uses particular attributes for HTML elements to determine the role and appearance of those elements in the jQuery Mobile page layout. There is a wonderful documentation about this, titled Anatomy of a Page, on http://jquerymobile.com in the documentation section about pages and dialogs.

Engage Thrusters

  1. There is an empty skeleton of a layout at ch2 | Source Files | protected | views | layouts ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required