We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
URL: https://doc.nette.org/cs/quickstart/comments
private function commentFormSucceeded(\stdClass $data): void { $id = $this->getParameter('id'); $this->database->table('comments')->insert([ 'post_id' => $id, 'name' => $data->name, 'email' => $data->email, 'content' => $data->content, ]); $this->flashMessage('Děkuji za komentář', 'success'); $this->redirect('this'); }
callback komponenty ma modifikator private a co som skusal moze byt len public, ani privat ani protected nie je spravne
The text was updated successfully, but these errors were encountered:
Je potřeba použít zápis $form->onSuccess[] = $this->commentFormSucceeded(...);
$form->onSuccess[] = $this->commentFormSucceeded(...);
Sorry, something went wrong.
No branches or pull requests
URL: https://doc.nette.org/cs/quickstart/comments
callback komponenty ma modifikator private a co som skusal moze byt len public, ani privat ani protected nie je spravne
The text was updated successfully, but these errors were encountered: