We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Wrong number of parameters

Please help. Site throw an error:

Wrong number of parameters

0 /var/www/www-root/data/www/vkcom.me/public/index.php(29): Phalcon\Mvc\Application->handle()

1 {main}

index.php

$application = new \Phalcon\Mvc\Application($di);

echo $application->handle()->getContent();


4.1k
Accepted
answer
$application = new \Phalcon\Mvc\Application($di);
$request = new \Phalcon\Http\Request();
echo $application->handle($request->getURI())->getContent();


407

Tkank you!