Symfony-only output template - no add to layout.php

Is there any way to disable adding layout.phpto mine actionNameSuccess.php? I would like this option to be enabled for some modules and disabled (i.e. let layout.phpadd) for other modules.

I can solve the problem by creating a new application and installing it layout.phponly

<?php echo $sf_content?>

but I would like to use the same application. Since I need to have connections between the two, and link_to only works with the application, and I don’t want to pass an absolute URL.

+5
source share
1 answer

$this->setLayout(false); . , view.yml.

UPDATE: denys281, view.yml -

has_layout: false
+12

All Articles