Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run in fiddle - undefined variable $form #1009

Open
ratajskym opened this issue Apr 19, 2023 · 1 comment
Open

Run in fiddle - undefined variable $form #1009

ratajskym opened this issue Apr 19, 2023 · 1 comment

Comments

@ratajskym
Copy link

Is this suspected behaviour ?

URL: https://doc.nette.org/en/forms/controls -

Ex. https://doc.nette.org/en/forms/controls#toc-addcheckbox - run in fiddle leads to ->

Error Call to a member function addCheckbox() on null on line 3

Undefined variable $form

@mabar
Copy link
Contributor

mabar commented Jan 26, 2024

By fiddle - do you mean Latte Fiddle? It is just for Latte syntax - there are no other framework components installed and template has no parameters (therefore no pre-initialized variables)

First read overview and either forms in presenters or forms standalone chapters to learn, how to initialize $form variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants