Comments (7)
Use the do
tag - https://twig.symfony.com/doc/3.x/tags/do.html
{% do _view.assign() %}
from twig-view.
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.
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.
Starting off with the README until it gets too long is a good place to start then 😄
from twig-view.
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.
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.
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)
- 3.3.0 Enhancement: Fetch extension from one central source
- 5.x Implement Tags for CakePHP View Template Block Builder
- Add missing tests for #233 HOT 2
- Convert TwigTemplateTask & CompileShell to commands
- Beta HOT 3
- Improve helper integration so templates don't need raw HOT 9
- Use function notation for elements and cells HOT 4
- ProfilerExtension is missing DebugTimer::end() call
- Support twig loading templates from plugins and without extensions
- Unknown "getVars" function. HOT 4
- Twig's native format filter is being overwritten HOT 3
- Static Twig environment issue HOT 4
- Link to twig docs broken
- i18n extract from .twig-files HOT 10
- Twig returns error when doing a date filter on a Cake\I18n\Date HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twig-view.