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

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -