Reputation: 675
I inherited these symfony source files from a site previously hosted on a linux box, and developed by someone else. I'm developing on a Windows XP machine and am trying to make this site work on localhost.
I've made sure that in /apps/frontend/config/view.yml the setting below are there. (And this is a default setting for all site pages.)
has_layout: on
layout: layout
And that the selected layout is available and correct in /apps/frontend/templates/layout.php
Yet, whenever I try to load a page, in page source, I can see that it only loads the module template code, without anything around it.
Upvotes: 1
Views: 1290
Reputation: 675
Guess what, it was a syntax error in a config/settings.yml file.
I've put 'true' instead of 'on' and 'false' instead of 'off'. I'm not sure if it was a because the file contained both 'on' and 'true', or if it can only tolerate one or the other depending on version of symfony.
5 days of banging head into keyboard over a stupid file format that has no debug.
I will not use yaml files willingly again.
Upvotes: 0
Reputation: 4506
There could be multiple issues:
<?php decorate_with('layout'); ?>
to one of your views (like indexSuccess.php
, does it work? Is there no override for the project view.yml
in the module? Or is the template overriden with a <?php decorate_with(FALSE); ?>
statement?But my first guess is the top one: enable all logging and view your log.
Upvotes: 1