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

not found in the dependency injection container

at this album-o-rama sample mvc application has one error to load controller and action after add / at the end of the url for EX: https://album-o-rama.phalcon.io/album/38251/InnerSpeaker/

at the above url have a error: Service 'view' was not found in the dependency injection container

but this url is ok and loaded : https://album-o-rama.phalcon.io/album/38251/InnerSpeaker

what the reason of the error and how to handel this problem with out redirect?

also at this forum : Page not found: /discussion/2666/not-found-in-the-dependency-injection-container/ ---> have error and redirect to index controller /discussion/2666/not-found-in-the-dependency-injection-container ---> its ok



98.9k

The extra slash produces a not found action which is not currently handled by that example.

yes , but how to load last action with extra slash ?

Even this too doesn't work in case of album-o-rama :(