Welcome Guest, Not a member yet? Register   Sign In
Syntax error, unexpected 'public' (T_PUBLIC)
#2

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.
Reply


Messages In This Thread
RE: Syntax error, unexpected 'public' (T_PUBLIC) - by xenomorph1030 - 05-12-2017, 05:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB