Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NEEDS REVIEW] Fix #1040 #1153

Closed
wants to merge 9 commits into from
Closed

[NEEDS REVIEW] Fix #1040 #1153

wants to merge 9 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Aug 25, 2013

See #1040

What this patch does is suppresses (un)camelize when controller name comes from the annotation parser (as in this case we will deal with the real controller name which does not need to be camelized).

@@ -596,6 +596,9 @@ static inline int phalcon_dispatcher_fire_event(zval *return_value, zval *mgr, c
if (!phalcon_memnstr_str(handler_name, SL("\\"))) {
PHALCON_INIT_NVAR(camelized_class);
phalcon_camelize(camelized_class, handler_name);
} else if (phalcon_start_with_str(handler_name, SL("\\"))) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hack: when we don't want the controller name to be mangled, we prepend it with '' (pretending that the controller is in a namespace which effectively disables mangling). This code removes the extra slash.

@ghost
Copy link
Author

ghost commented Oct 19, 2013

Applied fix for #1275 as that issue was caused by this patch

@ghost
Copy link
Author

ghost commented Oct 19, 2013

Rebased agianst the latest 1.3.0

@ghost ghost closed this Feb 21, 2014
@ghost ghost deleted the issue-1040 branch February 21, 2014 23:38
@niden niden removed the Unassigned label Apr 3, 2014
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants