Syntax error, unexpected 'public' (T_PUBLIC) |
The error is exactly what it says, unexpected 'public' on line 10. Check out line 10. Check out your class and how it only contains a __construct() function.
PHP does a decent job most of the time telling you where an error is. Always check the simple things and don't be so quick to give up. |
Messages In This Thread |
Syntax error, unexpected 'public' (T_PUBLIC) - by luroti - 05-08-2017, 04:28 AM
RE: Syntax error, unexpected 'public' (T_PUBLIC) - by xenomorph1030 - 05-12-2017, 05:58 AM
RE: Syntax error, unexpected 'public' (T_PUBLIC) - by antony - 05-12-2017, 07:48 AM
|