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

$this->dispatcher->getControllerName() stripping first char

Hi, just a quick note because I'm stuck at this problem right now: Since the update from 1.2.0 to 1.2.4, inside a Plugin or Action, $this->dispatcher->getControllerName() always strips the first char!

For example, my controller is named "AuthenticationController" and I'm debugging inside "loginAction", $this->dispatcher->getControllerName() always returns "uthentication". With 1.2.0 it was ok.

I'll set up a more detailed example this evening if I need to, but maybe you can already give me a hint on what may have changed?

Thank you, Toby



6.4k

With 1.2.3 or branch 1.3.0 it works like normal... In branch 1.2.5 it fails the same way.

I think it's related to https://github.com/phalcon/cphalcon/issues/1541 with the difference that the first char seems to be missing completely and not being a upper/lowercase issue.