javascript - PHP Fatal error: Call to a member function post() on a non-object -
javascript - PHP Fatal error: Call to a member function post() on a non-object -
so trying alter url path match name of sql tables.
i have html page follows form, after user clicks create runs next js code:
if (form.eventid.value && confirm("are sure want create: " + form.eventid.value + "?")) { form.action = '/srv/events/create'; }
which in theory should link next php statement:
$app->post('/events/create', function () { $args = $_post; createsql('events', $args, defineeventfields()); });
what before '/event/create' , worked no problems, did ann 's' end of event , throws me these errors:
php notice: undefined variable: app in ... php fatal error: phone call fellow member function post() on non-object in ...
what issue?
the error message pretty clear:
call fellow member function post() on non-object
you calling fellow member function post()
on non-object: $app
you have find out why $app
has not been initialized.
javascript php
Comments
Post a Comment