GithubHelp home page GithubHelp logo

Comments (6)

garak avatar garak commented on August 27, 2024

I'm not sure to understand your problem

from beelabtagbundle.

antoine-nedelec avatar antoine-nedelec commented on August 27, 2024

I can't manage to show in a twig template one of your Tag entity.

I do have my form builder under App\Form\Type\TagsTextType, with a simple buildform like this:

    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('tagsText', TextType::class, ['required' => false, 'label' => 'Tags'])
        ;
    }

But I do not know how to generate the form in the end, I don't think i'm supposed to use this way:

        $builder->create($entity)
            ->add('keywords', TextType::class, array(['required' => false, 'label' => 'Tags']))
            ->getForm();

And I tried the Form Type Extension also, and couldn't make it work either. Do you have any working example project that I could inspect to understand how to do it ? Or maybe the solution if it is really simple :)

from beelabtagbundle.

garak avatar garak commented on August 27, 2024

https://symfony.com/doc/current/forms.html#form-creating-form-classes

from beelabtagbundle.

garak avatar garak commented on August 27, 2024

Can we close this?

from beelabtagbundle.

antoine-nedelec avatar antoine-nedelec commented on August 27, 2024

Hello, yes sorry forgot to do that, but if I may i'l like to push 1 or 2 things in the documentation for the next novice person like me before you close it ?

from beelabtagbundle.

garak avatar garak commented on August 27, 2024

Feel free top open a pull request.

from beelabtagbundle.

Related Issues (19)

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.