Routing setup question - "Posts::edit".


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.



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.


You can submit a pull request to the docs, if you want to improve an example:


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