Next Chapter: Creating a new mobile View for Books

Creating a Bootstrap Theme for mobile websites

2019-05-13 16:28:21.482779+00

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'); ?>

Tag: cakephp2

Previous Chapter: Mobile websites with CakePHP and Bootstrap

Next Chapter: Creating a new mobile View for Books