Giter Site home page Giter Site logo

Publish 2 widgets about laravel-widgets HOT 8 CLOSED

arrilot avatar arrilot commented on July 23, 2024
Publish 2 widgets

from laravel-widgets.

Comments (8)

arrilot avatar arrilot commented on July 23, 2024

Make sure you don't do anything nasty in the first widgets like die()
It works well for me and i can't reproduce your problem

from laravel-widgets.

kossa avatar kossa commented on July 23, 2024

Still not working :'(
Here is my project : https://github.com/kossa/moltaka-app/tree/master/app

Please take a look and let me know what happen

from laravel-widgets.

kossa avatar kossa commented on July 23, 2024

I created a fresh installation, and alright it works fine, I'll dig again :/

from laravel-widgets.

kossa avatar kossa commented on July 23, 2024

I found the problem but not the solution
Please try this :

  1. Create a yield section in your master view : @yield('content')
  2. in your 2 widgets view use :
@section('content')
some content
@stop

You'll see the problem ;)

from laravel-widgets.

arrilot avatar arrilot commented on July 23, 2024

You overwrite the same blade section.
Use @parent in your widget view.
For more info check Laravel doc for blade

from laravel-widgets.

kossa avatar kossa commented on July 23, 2024

Ahh alright, Really I don't know that it exists not mentioned : http://laravel.com/docs/4.2/templates#blade-templating

Thank you @arrilot 👍

from laravel-widgets.

arrilot avatar arrilot commented on July 23, 2024

You are welcome

from laravel-widgets.

 avatar commented on July 23, 2024

Great M.rKossa :)
Your are the master of laravel
And thanks for Mr.Arrilot for his kind support

I like this widget also :)

from laravel-widgets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.