Laravel disable controller action layout -


Is there a way to disable layout for some controller method?

I have $ this-> Layout = zero , it still presents the layout

Visual IM rendering is clearly a layout associate

  Square Buyer Controller Expands \ BaseController {Public Function Index () {$ this- & gt; Layout = zero; See Return: Creating ('purchasers.index'); }}  

View:

  @extends ('layout.master') @section ('content') content @stop  

I just use Laravel 4

just delete

 < Code> @edads ('layout.masters')  

From your view it will be prevented from seeing the load.

In addition - if you are using @ededs - you really do not need $ this-> layout () in your controller

< P> Edit:

"I am still surprised that it is possible to disable the layout within the controller method without the need to modify the blade file"

The idea is that you completely do it with the controller or blade file completely. Not both together


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -