Git Product home page Git Product logo

Comments (5)

stof avatar stof commented on July 27, 2024

Well, if you are using Twig with Silex, the chapter 2 of the doc describes it (so before the Silex integration chapter which is the third one). I don't think it make sense to duplicate the doc about Twig templates in both pages

from knpmenu.

umpirsky avatar umpirsky commented on July 27, 2024

Thanks. Maybe you are right.

But I followed https://github.com/KnpLabs/KnpMenu/blob/master/doc/02-Twig-Integration.markdown , used twig renderer

$app['knp_menu.default_renderer'] = 'twig';

and I got:

Twig_Error_Loader' with message 'Template "" is not defined.

Is something broken in current version of this bundle, or I am doing somthing wrong?

from knpmenu.

stof avatar stof commented on July 27, 2024

are you redefining $app['knp_menu.template'] to an empty string ?

from knpmenu.

umpirsky avatar umpirsky commented on July 27, 2024

No, here is my app https://gist.github.com/3ab3f4535b9e7dd98457

from knpmenu.

umpirsky avatar umpirsky commented on July 27, 2024

Problem was in my custom menu template.

Fixed it with {% extends knp_menu.html.twig %} => {% extends 'knp_menu.html.twig' %}

from knpmenu.

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.