micro rest api error

<?php

$app = new Phalcon\Mvc\Micro();
$app->get('/say/welcome/{name}', function ($name) {
    echo "Welcome $name!";
});
$app->handle();

i request http://localhost/say/welcome/douma has error

Fatal error: Uncaught exception 'Phalcon\Mvc\Micro\Exception' with message 'Not-Found handler is not callable or is not defined' in

pls help me to fix it



64.4k

sorry but jsut to be sure, you request it with GET not with POST right ?



677

i request is GET



677

doumaMBP:build douma$ curl http://localhost/say/hello/douma <br /> <b>Fatal error</b>: Uncaught exception 'Phalcon\Mvc\Micro\Exception' with message 'Not-Found handler is not callable or is not defined' in /Users/douma/Sites/index.php:8 Stack trace:

0 /Users/douma/Sites/index.php(8): Phalcon\Mvc\Micro-&gt;handle()

1 {main}

thrown in <b>/Users/douma/Sites/index.php</b> on line <b>8</b><br />



677

i fix it becase .htaccess is error.



677

i fix it becase .htaccess is error.