I am using L4 with Blade. I would like to be able to conditionally expand the layout. For normal use, I would like to expand the master layout, and for ajax rendering, I would like to expand the ajax template. I am using the following code:
@if ( isset($ajax) ) @extends('layouts.ajax') @else @extends('layouts.master') @endif
But when the page displays this, it simply prints @extend ('layouts.master').
Does anyone know how to conditionally expand a layout or another?
thank
laravel laravel-4 blade
luv2Code Jul 03 '13 at 18:15 2013-07-03 18:15
source share