Rapid Application Development with Open Source Software

Next: Creating a Bootstrap Theme for mobile websites UP: TOC

Developing mobile websites with CakePHP and Bootstrap is straightforward. We will reuse for mobile websites all relevant models and controllers. What we need to do is creating a mobile layout and some views. If a mobile view is not available, CakePHP is smart enough to use the desktop views without throwing errors. Therefore we can mobilize our site in small steps without a big bang approach. In our approach we don't have different URL's for mobile and desktop sites.

  1. First we build a mobile layout
  2. Decide in the "root" controller what layout is to be used depending on the webbrowers user agent
  3. Develop new views for the most important controller functions
  4. Let the search engine boots know the links of the mobile websites
Next: Creating a Bootstrap Theme for mobile websites UP: TOC