akhawaja / twigview Goto Github PK
View Code? Open in Web Editor NEWView replacement for the default Laravel View using the Twig template engine.
View replacement for the default Laravel View using the Twig template engine.
Followed the setup instructions exactly and receive the following message:
Unhandled Exception
Message:
Class 'Twig_Function' not found
Location:
/projects/raffle/bundles/twigview/Twig/Function/Function.php on line 20
It doesn't appear to work with the current version of Laravel as the Laravel view class underwent refactoring recently.
hi,
I put the directory TwigView in bundles
i use Laravel 3.2.10.7
got this error on install:
Message:
Invalid argument supplied for foreach()
Location:
/home/www/_laravel/bundles/TwigView/view.php on line 71
Stack Trace:
#0 /home/www/_laravel/laravel/laravel.php(40): Laravel\Error::native(2, 'Invalid argumen...', '/home/www/_lara...', 71)
#1 /home/www/_laravel/bundles/TwigView/view.php(71): Laravel{closure}(2, 'Invalid argumen...', '/home/www/_lara...', 71, Array)
#2 /home/www/_laravel/laravel/view.php(570): TwigView\View->render()
#3 /home/www/_laravel/laravel/response.php(246): Laravel\View->__toString()
#4 /home/www/_laravel/laravel/laravel.php(178): Laravel\Response->render()
#5 /home/www/_laravel/public/index.php(34): require('/home/www/_lara...')
#6 {main}
i put a config/twig.php but, what write inside this config file ?
i do this:
'/storage/cache/', 'debug' => true, 'autorelaod' => true, ``` ); but it doesn't work... thanks for your helpI'm just discovering Twig and I'm having troubles converting my views. Per example I registered some macros with HTML::macros but none of them seem to work. None of the Laravel helpers are usable as well (even if TwigView provides replacements). Simple PHP blocks aren't even parsed.
How is it all supposed to go on ? How do one proceed to use Laravel inside the Twig views ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.