We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Phalcon router issue.

Hi Why I am getting this error? installed phalcon-4.0 PHP 7.4 If I use phalcon 3.4 than I get "httpd.exe entry point not found " error.

Error Wrong number of parameters

0 D:\xampp\htdocs\phalcon-todo\app\config\router.php(28): Phalcon\Mvc\Router->handle()

1 D:\xampp\htdocs\phalcon-todo\public\index.php(126): include('D:\xampp\htdocs...')

2 {main}

Router.php code

$router = $di->getRouter();

// Default route $router->add('/', ['controller' => 'index', 'action' => 'index']); $router->handle();

Any help. Thanks

Phalcon 4 expects an URI to be provided to the handle() function:

https://docs.phalcon.io/4.0/en/application#overview

It sounds good.