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

File TableGenerator.php failed #4

Open
gusbemacbe opened this issue Mar 1, 2020 · 0 comments
Open

File TableGenerator.php failed #4

gusbemacbe opened this issue Mar 1, 2020 · 0 comments

Comments

@gusbemacbe
Copy link

Hello,

I received an error:

127.0.0.1:58996 [200]: HEAD / - Uncaught ArgumentCountError: Too few arguments to function TableGenerator\TableGenerator::addData(), 1 passed in /home/gusbemacbe/Templates/Jackson Zacarias/index.php on line 76 and exactly 2 expected in /home/gusbemacbe/Templates/Jackson Zacarias/vendor/php-table-generator/php-table-generator/src/PhpTableGenerator/TableGenerator.php:66
Stack trace:
#0 /home/gusbemacbe/Templates/Jackson Zacarias/index.php(76): TableGenerator\TableGenerator->addData()
#1 {main}
  thrown in /home/gusbemacbe/Templates/Jackson Zacarias/vendor/php-table-generator/php-table-generator/src/PhpTableGenerator/TableGenerator.php on line 66

PHP, derived from your tutorial:

  $head = new Head($row1);
  $head->addData(array('myData', 'myDataValue'));
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

1 participant