Coder Social home page Coder Social logo

Comments (7)

othercorey avatar othercorey commented on June 28, 2024 3

Use the do tag - https://twig.symfony.com/doc/3.x/tags/do.html

{% do _view.assign() %}

from twig-view.

markstory avatar markstory commented on June 28, 2024

Would you want this info in the readme, or should we start a docs site like some of the other plugins have?

from twig-view.

othercorey avatar othercorey commented on June 28, 2024

It would help me decide if I knew what documentation requests people have.

I don't want to re-create View documentation -- more like link to View and explain TwigView changes.

I want it to be easy to use -- but if I have to write more than very simple explanations then a separate document is probably easier.

from twig-view.

markstory avatar markstory commented on June 28, 2024

Starting off with the README until it gets too long is a good place to start then 😄

from twig-view.

victoreassis avatar victoreassis commented on June 28, 2024

How these methods can be used avoiding this warning?

For now I created a TwigView that overrides the assign method to return nothing. I don't know if this is the way to go, but it seems to work.

from twig-view.

victoreassis avatar victoreassis commented on June 28, 2024

Thanks, it worked out great and makes a lot more sense. I should have read the docs more carefully.

The previous package didn't complain about it at all, so I though it was ok.

from twig-view.

othercorey avatar othercorey commented on June 28, 2024

The assign() function returns $this and the previous TwigView had a hack to convert itself to an empty string. It didn't throw an error, but it wasn't supposed to work like that.

from twig-view.

Related Issues (16)

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.