Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

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();


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


262

Tkank you!