I have some code like this:
    $di = new \Phalcon\DI\FactoryDefault();
    $di->set('url', function () use ($config) {
        $url = new \Phalcon\Mvc\Url();
        $url->setBaseUri($config->application->baseUri);
        return $url;
    });So i want to get url with $di->get('url'), but it doesn't work. The HTTP500 error appeard. I think it is an error about phpframework.
Can anybody help me ? Thanks very much