Skip to content

Creating a Component errors #1039

Open
Open
@matt-matt1

Description

@matt-matt1

URL: https://doc.nette.org/en/application/components

I tried to follow the steps on this page, to make a component. But there's problems.
It said to create a Factory then it says create an Interface. Both have the same name. One could put them into separate directories, files can be created with the same names.
Please explain with a directory structure.

Nette is great and makes a complex task, simple. But I think the documentation is lacking. I mean it probably make perfect sense to a experienced Nette programmers. However people like me that are new-commers cannot piece things properly. After reading and reading many parts of the documentation, I still have problems getting Latte templates correct.

Please provide a simple example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions