7

Is there any way to disable the addition of layout.php to my actionNameSuccess.php? I would like this setting to be enabled for some modules and disabled(i.e. let layout.php add up) for other modules.

I can solve the problem by making a new application and setting its layout.php to just

<?php echo $sf_content?>

but I would like a same-application solution. Since I need to have links between these two and link_to only works relative to an application and I don't want to pass an absolute url.

j0k
  • 22,600
  • 28
  • 79
  • 90
prongs
  • 9,422
  • 21
  • 67
  • 105

1 Answers1

14

You can call $this->setLayout(false); in your action. I think you may also achieve this with the view.yml file.

UPDATE: as denys281 pointed out, the way to do this in view.yml is to use

has_layout: false
greg0ire
  • 22,714
  • 16
  • 72
  • 101