Rapid Application Development with Open Source Software

Next: Creating a new mobile View for Books UP: TOC

In order to create a mobile layout we need to create a theme in CakePHP

cd /usr/local/www/logikfabrik/cakephp/app/View/
mkdir Themed
cd Themed
mkdir mobile15
cd mobile15
vi default.ctp

The content of default.ctp looks as follow




Html->charset(); ?>

<?php echo $title_for_layout; ?>
Html->css('//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css');
?>







Session->flash(); echo $this->fetch('content'); ?>
Next: Creating a new mobile View for Books UP: TOC