-1
I’m writing my first PHP application. What I have been studying, I have chosen to learn Object Orientation and MVC.
I’m building this application by following a book I have, and it’s returning the following error:
Parse error: syntax error, unexpected 'private' (T_PRIVATE) in C:\wamp\www\denis-manzetti\sys\class\class.calendar.inc.php on line 11
sys/core/
init.inc.php
sys/config
db-cred.inc.php
class.event.inc.php
sys/class
class.event.inc.php
class.db_connect.inc.php
class.calendar.inc.php
public/
index php.
if anyone can quote what I should study, I thank you in advance, hugs
Fix the line 11 of the cited file:
public function __construct( ... ){ private function _loadEventData( ... ) } }
. You put the method _loadEventData within the __Construct.– Papa Charlie
Notice: Undefined variable: db in C:\wamp\www\denis-manzetti\sys\class\class.db_connect.inc.php on line 7
– manzetti.denis
db_connect.inc.php line 7:
protected function __construct( $dbo=NULL ){ if(is_object($db)) [...]
, you defined$dbo
and used$db
.– Papa Charlie