Routing setup question - "Posts::edit".

Hi,

In the official doc, without warning or explanation:

$router->addGet("/products/edit/{id}", "Posts::edit");

What's "Posts::edit" supposed to mean? API doc says "(string|array) Paths". How's that a path? Why '::' there?

Utterly confusing.

I think you need a wiki page attached to every documentation section, so users could post examples or improve the documentation.

Thanks!



30.0k

ok, I figured it out. "Posts" is a controller name, "edit" is action name.

But I used PHP debugger to figure it out. Not everyone can do that.



83.4k

You can submit a pull request to the docs, if you want to improve an example: https://github.com/phalcon/docs



30.0k

I will be happy to help with the docs, I just need to first fully understand phalcon.