Blade in laravel 4.2 not working in @elseif statement -
i trying render javascript codes using blade template in laravel 4.2 , unable render inside @elseif working in @if statement. can verify flaw in laravel 4.2 or error.
@if ( $page == 'loginpage' ) @yield('body') {{ html::script('js/jquery.min.js') }} //works here @elseif ( $page == 'resetpage' ) @include('panel') @yield ('body') @section('js') {{ html::script('js/jquery.min.js') }} //cannot render here neither yielded section. @show @endif
only html::script in @if statement works. granted. in advance.
edit: solved problem have overrided section other sections. sorry bother all.
Comments
Post a Comment