PHP Fatal error: Uncaught Error: Class not found

℡╲_俬逩灬. 提交于 2021-02-05 12:11:41

问题


I am trying to go trough tutorial of doctrine here is official website. And I got an error in Starting with the Product Entity part.

This is what I write to terminal: $ php create_product.php ORM

PHP Fatal error:  Uncaught Error: Class 'product' not found in /home/vaclav/Server/vssk/VSSK/project/create_product.php:8
Stack trace: #0 {main}
  thrown in /home/vaclav/Server/vssk/VSSK/project/create_product.php on line 8

回答1:


Solved with adding:

require_once 'patch_to_your_class/Product.php';

to create_product.php.



来源:https://stackoverflow.com/questions/48529676/php-fatal-error-uncaught-error-class-not-found

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!