Hello there,
I'm completely new to Phalcon and I'm stuck at the Micro application tutorial. Here's the code so far:
<?php
# public/index.php
use Phalcon\Mvc\Micro;
$app = new Micro();
$app->get('/{name}', function ($name) {
var_dump(func_get_args());
die;
});
$app->handle();
Now if I
$ cd public
$ php -S localhost:8006
And go to https://localhost:8006/foo
, here's what I get:
array(1) { [0]=> string(0) "" }
So basically $name
is an empty string instead of foo
.
What's wrong with this?
PHP 7.1 - Phalcon 3.2.2
Thank you, Ben