Tuesday, 15 February 2011

layout - cakePHP & Twitter Bootstrap - View -



layout - cakePHP & Twitter Bootstrap - View -

i'm using plugin cakephp --> twitterbootstrap, works glow except can't alter layouts. ie. index, add together , such.

i have model called cinema , have created cake bake , same thing views/cinemas

this controller:

<?php app::uses('appcontroller', 'controller'); /** * cinemas controller * */ class cinemascontroller extends appcontroller { /** * layout * * @var string */ public $layout = 'bootstrap'; /** * scaffold * * @var mixed */ public $scaffold; }

have overridden cakephps routes special scaffolding template?

by defining public $scaffold; in controller, tell cake want enable scaffolding mode, allows insert/edit/delete records. scaffolding mode uses "default" layout.

in other words, defining public $scaffold; variable, "overrule" layout. scaffolding mode doesn't adopt setting. remove public $scaffold; line bootstrap layout.

cakephp layout twitter-bootstrap routes scaffold

No comments:

Post a Comment